react-native-vector-icons
react-native-vector-icons copied to clipboard
IOS Only: RNVectorIconsManager not available, did you add the library to your project and link with libRNVectorIcons.a? Try running `react-native link react-native-vector-icons` and recompiling.
This happens on IOS when calling getImageSource
or getImageSourceSync
, would like to call those two without running react-native link
because this command is marked as deprecated and will be removed soon. I am using react-native 0.68.2
and react-native-vector-icons 9.2.0
.
Same here! Running React-Native 0.69.4
It has happened to me on RN 0.69.5. I've solved it by removing react-native.config.js
which was created while following the steps for iOS and running pod-install (npx pod-install
) again.
same problem. "react-native": "0.69.5", "react-native-vector-icons": "^9.2.0",
Facing same problem and without following changes in react-native.config.js
I'm getting duplicate file error during build.
module.exports = {
...
dependencies: {
'react-native-vector-icons': {
platforms: {
ios: null,
},
},
},
};
It has happened to me on RN 0.69.5. I've solved it by removing
react-native.config.js
which was created while following the steps for iOS and running pod-install (npx pod-install
) again.
I've resolved by change this
module.exports = {
...
dependencies: {
'react-native-vector-icons': {
platforms: {
ios: null,
},
},
},
};
To this
module.exports = {};
Doesn't removing the config file lines then mean the fonts end up in the bundle (which you don't want)?
My code was calling the loadFont() method
import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons"
MaterialCommunityIcons.loadFont()
This turned out to be unnecessary for my use case, so the fix was to delete that 2nd line
import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons"
Is it fixed?
I added this on the Podfile pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
Eu adicionei isso no Podfile
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
tks ✅ @badalsaibo
react-native-config.js
module.exports = {
dependencies: {
'react-native-vector-icons': {
platforms: {
ios: null
}
}
}
}