I’ve adopted the next steps with a purpose to use customized fonts on Android and iOS.
-
Create the next folder that accommodates all fonts
src/property/fonts
. -
Fonts are named
fakt_pro_normal.otf
andfakt_pro_medium.otf
. -
Have a
react-native.config.js
file which accommodates the next: -
module.exports = { challenge: { ios: {}, android: {}, }, property: ['./src/assets/fonts'], };
-
Linked utilizing
npx react-native-asset
-
Add the fonts within the construct phases – copy bundle sources
Nonetheless whereas this works on Android, it doesn’t work on iOS and I’m not positive why as a result of it appears I’ve adopted all potential steps.