I am learning react-native
, trying to create some demo apps just for learning. I want to set fontFamily
to roboto thin of my toolbar title.
@nitin-anand's answer was the most appropriate and cleaner than the rest, but that method is now deprecated and now we will have to create a react-native.config.js
file in our root with the following configuration as an example:
module.exports = {
project: {
ios: {},
android: {},
},
assets: ['./assets/fonts'],
};