React native vector icons linking
See original GitHub issueIs your feature request related to a problem? Please describe. React native vector icons is one of the few libraries that isn’t linking automatically. I followed the instructions using CocoaPods option and got the following error after run the app:
error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually: react-native-vector-icons (to unlink run: “react-native unlink react-native-vector-icons”) This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via “react-native unlink <dependency>” and it will be included in your app automatically. If a library isn’t compatible with autolinking, disregard this message and notify the library maintainers.
I was just expecting this if I followed the react native link option.
Describe the solution you’d like Autolinking. The current solution seems to link but then I need to unlink 🤷♂️
Additional context
I’ve ran react-native unlink react-native-vector-icons
and the line that I added on my Podfile got deleted. After that, the app still runs.
pod ‘RNVectorIcons’, :path => ‘…/node_modules/react-native-vector-icons’
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:44
Top GitHub Comments
I have solved this instead of unlinking the package removing all the .ttf resources from Build Phases -> Copy Bundle Resources and then running the application.
Run below commands to solve this issue. npx react-native link npx react-native unlink react-native-vector-icons