I am using React Native (V-0.64).
I used the method of downloading and adding the custom font in the assets folder and creating a react-native.config.js file and export the link from there. But I keep getting the following error when I run the app on the device.
COdes in the file
module.exports = {
assets: ['./assets/fonts'],
};
Then run the npx react-native link to link the assets into the android and iOS files. But I keep getting the following error in the lines and do not get the font changes in the Text
fontFamily "VeganStylePersonalUse-5Y58" is not a system font and has not been loaded through Font.loadAsync.
- If you intended to use a system font, make sure you typed the name correctly and that it is supported by your device operating system.
- If this is a custom font, be sure to load it with Font.loadAsync.
at node_modules/expo-font/build/Font.js:27:16 in processFontFamily
at [native code]:null in commitRootImpl
at [native code]:null in performSyncWorkOnRoot
at [native code]:null in forEach
at node_modules/react-native/Libraries/Core/setUpReactRefresh.js:43:6 in Refresh.performReactRefresh
at [native code]:null in callFunctionReturnFlushedQueue
I tried lots of things but did not work. Please help.