React Native Fonts | How to install 0.69+

React native fonts 0.69+

Prior to version 0.69, we were using npx react-native linkcommand to copy the resources to the native side among other things. But let's face it, we stopped using that command for anything else a long time ago because of auto-linking.

Well, now it is changed again because the link command doesn't exist anymore. I keep forgetting how, so not to search and spend some unnecessary time I'll have it here where it is handy for me, maybe for you too.

Let's add the assets location to the react-native.config.js file. You probably don't have it, if so feel free to create it in the project root.

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

if you are using yarn run the command below and it is done.

yarn dlx react-native-asset

if you are using npm start using yarn.