79737227

Date: 2025-08-16 13:52:21
Score: 0.5
Natty:
Report link

Just do this:

const defaultProps = {
  allowFontScaling: false,
  adjustsFontSizeToFit: false,
  // add other props overrrides here
};

// @ts-expect-error missing type
RNText.defaultProps = {
  // @ts-expect-error missing type
  ...(RNText.defaultProps || {}),
  ...defaultProps,
};
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Stanley