Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

add fonts in react native

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)
 
PREVIOUS NEXT
Tagged: #add #fonts #react #native
ADD COMMENT
Topic
Name
9+7 =