As you may know react native >='60.0' does support auto linking, There are a lot of tutorial for adding custom fonts but most methods are out of date and confusing, All of them still using react native link
I wonder how can i add custom fonts in latest version of react native (0.61.5) that work on both of ios and android?
My react-native.config.js is like this:
commands: [...ios.commands, ...android.commands],
platforms: {
ios: {
linkConfig: ios.linkConfig,
projectConfig: ios.projectConfig,
dependencyConfig: ios.dependencyConfig,
},
android: {
linkConfig: android.linkConfig,
projectConfig: android.projectConfig,
dependencyConfig: android.dependencyConfig,
},
},
/**
* Used when running RNTester (with React Native from source)
*/
reactNativePath: '.',
project: {
ios: {
project: './RNTester/RNTesterPods.xcworkspace',
},
android: {
sourceDir: './RNTester',
},
},
};