react-native-vector-icons
react-native-vector-icons copied to clipboard
Add autolinking compatibility for RN >=0.60.0
Hello Could you add support for autolinking for RN >=0.60.0 please thanks! https://github.com/react-native-community/cli/blob/master/docs/autolinking.md
I think you also need to upgrade two variables for Android:
compileSdkVersion 28
buildToolsVersion "28.0.1"
For those who can't upgrade to RN 0.60 ATM, you can use npm patch package to patch the module
I think you also need to upgrade two variables for Android:
compileSdkVersion 28 buildToolsVersion "28.0.1"For those who can't upgrade to RN 0.60 ATM, you can use npm patch package to patch the module
It'll automatically use the correct compileSdkVersion and buildToolsVersion so you don't have to ptach for those. The only thing this project needs to have auto-linking added is the automatic inclusion of
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
somehow.
Yes I know @StefanDorresteijn but I had to do it manually to make it work. Same on ios..
+1
+27
@Matiyeu , how did you manually get this to work?
At least for iOS this https://github.com/oblador/react-native-vector-icons/issues/1035#issuecomment-508645612 worked for me.
Is anyone looking into this? I am not able to upgrade my RN project to the latest 0.60.x due to just this dependency and I don't want to do it manually.
+1
I think you also need to upgrade two variables for Android:
compileSdkVersion 28 buildToolsVersion "28.0.1"For those who can't upgrade to RN 0.60 ATM, you can use npm patch package to patch the module
It'll automatically use the correct compileSdkVersion and buildToolsVersion so you don't have to ptach for those. The only thing this project needs to have auto-linking added is the automatic inclusion of
This doesn't seem to work correctly. Was getting build errors about missing v28 resources (/node_modules/react-native-vector-icons/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.)
My project build.gradle is:
compileSdkVersion 28
buildToolsVersion "28.0.3"
Manually edited this package's build.gradle to match: (node_modules/react-native-vector-icons/android/build.gradle)
compileSdkVersion safeExtGet('compileSdkVersion', 28)
buildToolsVersion "28.0.3"
and it started building correctly. Will probably explore npm patch package mentioned above in the meantime...
look forward to autolink
+1
autolinking doesn't work in case of RN 60.4 ,Please add support for autolinking
+1
+1
+1. I'm trying to use RN >= 0.60 using pods instead but not work, I am facing this issue: ExceptionsManager.js:86 $RefreshReg$ is not defined
You need to follow below steps in order to work with RN>=0.60 I have tested it in RN 0.60.4 and it will work smoothly.
yarn add react-native-vector-icons
Now navigate to ios folder and run
pod install
Now back to root folder and create a file named react-native.config.js in root of your project and add below code in this file,
module.exports = {
assets: ['react-native-vector-icons']
};
And finally run;
yarn react-native link
Now you are ready to use react-native-vector-icon
Happy coding 😺
For me it worked that way but I had to auto link yet. thank you @Ravi448
hello guys follow this one for ios : https://medium.com/@vimniky/how-to-use-vector-icons-in-your-react-native-project-8212ac6a8f06 For android I just solved the issue using: apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" this line paste into android/app/build.gradle(app). then re-run android.
fixed, thanks everyone
After running react-native link react-native-vector-icons, I needed to remove all the fonts from Copy Bundle Resources from your XCode project to run on iOS, Build Phases should look like this

is there any plan that when to support autolink?
+1
+1
+1
+1
+1
+1
Is anyone working on autolinking feature?
Auto linking worked for me, i'm using rn 0.60.5