iOS Development

xcode – React Native iOS – Unrecognized Font Household with “npx react-native-asset”


I do not perceive why the fonts should not loading for iOS. I am at present testing within the simulator. On Android these fonts have been loaded and work with npx react-native-asset

react-native.config.js

module.exports = {
  mission: {
    ios: {},
    android: {},
  },
  belongings: ['./src/assets/fonts/'],
};

link-assets-manifest.json (auto-created by command)

{
  "migIndex": 1,
  "knowledge": [
    {
      "path": "src/assets/fonts/poppins-400.ttf",
      "sha1": "fdd3002e7d814ee47c1c1b8487c72c6bbb3a2d00"
    },
    {
      "path": "src/assets/fonts/poppins-500.ttf",
      "sha1": "283f21b44efbdbf276ba802be2d949a36bbc4233"
    },
    {
      "path": "src/assets/fonts/poppins-700.ttf",
      "sha1": "875cf0cecd647bcf22e79d633d868c1b1ec98dfa"
    },
    {
      "path": "src/assets/fonts/poppins-900.ttf",
      "sha1": "645e04c53c6b5b35bce654a811ebce16af8aa721"
    }
  ]
}

What my Xcode and simulator appear to be:

enter image description here

enter image description here

enter image description here

enter image description here

What's your reaction?

Leave A Reply

Your email address will not be published.