react-nativereact-native-ios

Supporting Dynamic Type in React Native (iOS)


Does anyone know how to implement Support For Dynamic Type in React Native?

Ideally, we would like to listen for when someone has changed the size of the system font, and perform some type of callback.

Or even better, prevent Font Scaling from being implemented at all on some components.

enter image description here


Solution

  • Well, turns out you can apply:

    allowFontScaling={false}

    To prevent this.

    This worked for me:

    <Text allowFontScaling={false}>Do not want font to scale</Text>