HomeiOS Developmentxcode - Font that's being rendered on Android just isn't getting rendered...

xcode – Font that’s being rendered on Android just isn’t getting rendered on iOS though I’ve adopted all of the steps from the most well-liked guides


I’ve adopted the next steps with a purpose to use customized fonts on Android and iOS.

  1. Create the next folder that accommodates all fonts src/property/fonts.

  2. Fonts are named fakt_pro_normal.otf and fakt_pro_medium.otf.

  3. Have a react-native.config.js file which accommodates the next:

  4. module.exports = {
        challenge: {
            ios: {},
            android: {},
        },
        property: ['./src/assets/fonts'],
    };
    
  5. Linked utilizing npx react-native-asset

  6. Add the fonts within the construct phases – copy bundle sources

Nonetheless whereas this works on Android, it doesn’t work on iOS and I’m not positive why as a result of it appears I’ve adopted all potential steps.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments