Open PopJoestar opened 2 years ago
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.
yarn add react-native-vector-icons@9.0.0
You can try this version.
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
}
}
}
}
This happens on IOS when calling
getImageSource
orgetImageSourceSync
, would like to call those two without runningreact-native link
because this command is marked as deprecated and will be removed soon. I am usingreact-native 0.68.2
andreact-native-vector-icons 9.2.0
.