I am trying to install fonts with react-native link ./assets/fonts/ and with react-native link both are giving the same error: "error Failed to get dependency config."
I updated my package.json
"rnpm": { "assets": [ "./assets/fonts/" ] }
Please help
I have made sure the path to the font folder is correct and still same problem
There are a few potential reasons why you might be seeing the "error Failed to get dependency config" error when trying to link fonts with react-native link:
There might be a problem with the path to the font folder. Make sure that the path is correct and that the font files are located in the specified folder.
There might be a problem with the font files themselves. Make sure that the font files are in a format that is supported by React Native (such as .ttf or .otf).
There might be a problem with the react-native-cli package. Try uninstalling and reinstalling the react-native-cli package to see if that resolves the issue.
There might be a problem with the rnpm (React Native Package Manager) configuration in your package.json file. Make sure that the "rnpm" field is correctly configured and that the "assets" array includes the path to your font folder.
If none of these suggestions help, you might want to try running the react-native link command with the --verbose flag to get more detailed output that might help you identify the cause of the issue.