STEP 1 : If not already created, create a config file at the root of the project named react-native.config.js.
Proceed by adding the following code inside
STEP 2 : module.exports = {
project: {
ios:{},
android:{}
},
assets:['./assets/fonts/'],
}
STEP 3 : Run the following command :-
npx react-native link (React-native version < 0.69)
npx react-native-asset (React-native version > 0.69)
$ npx react-native link
module.exports = {
project: {
ios: {},
android: {},
},
assets: ['./assets/fonts']
};
module.exports = {
project: {
ios:{},
android:{}
},
assets:['./assets/fonts/'],
}
custom font react native