I've upgraded to the latest version of NativeBase. I was using Text.defaultProps.allowFontScaling = false to prevent font scaling. I now get a compilation error: Property 'defaultProps' does not exist on type 'typeof Text'.
react-native: 0.55
react: 16.3.1
native-base: 2.5.2
Should be able to set the defaultProps.allowFontScaling property.
'defaultProps' cannot be accessed on Text class.
constructor(props: any) {
super(props);
Text.defaultProps.allowFontScaling = false;
}


For those who need to get compilation working while globally setting Text.defaultProps, you can do something ugly like this:
interface TextWithDefaultProps extends Text {
defaultProps?: { allowFontScaling?: boolean };
}
((Text as unknown) as TextWithDefaultProps).defaultProps =
((Text as unknown) as TextWithDefaultProps).defaultProps || {};
((Text as unknown) as TextWithDefaultProps).defaultProps!.allowFontScaling = false;
// etc.
Alternatively, could just throw a // @ts-ignore above it, and can do a one-liner like Text.defaultProps = { ...(Text.defaultProps || {}), allowFontScaling: false }