I am working with react native and I only want to link my fonts and nothing else.
I am using react-native-maps and it specifically says in the docs "Do not use react-native link
"
Everywhere I look I see that people say to do react-native link
in order to link fonts but I am wonder in if there is proper syntax for just linking fonts like:
react-native link ./assets/fonts
or something? That way it will not also link all my other libraries
You can give react-native link
a parameter / name that is not present in your package.json
- this will cause the task list for the command to contain only the link assets task.
So react-native link ./assets/fonts
is not a valid command, but it should work.
Do remember you need your fonts dir specified in package.json as per Hamed's answer.