React Native Unrecognized font family not fixing

前端 未结 2 1651
再見小時候
再見小時候 2021-01-12 17:11

The fonts are in my asset folder, they are also inside xcode copy bundle resources, and also inside resource folder. I already also ran react-native link, but it still doesn

2条回答
  •  醉酒成梦
    2021-01-12 18:10

    Please update below with your code:

    "rnpm": {
        "assets": [
          "./src/assets/fonts/"
        ]
      }
    

    You missed "/" that's why your compiler didn't find the font file.

    Let me know if you still got any issues.

提交回复
热议问题