react-native-vector-icons: [Bug]: iOS not displaying the icons correctly
Which package are you using?
react-native-vector-icons
What platform(s) does this occur on?
iOS
What happened?
I tried react-native-vector-icons@10.2.0 @10.1.0 @10.0.0. All showing the same error.
I’m using react-native@0.76.5.
Relevant log output
There isn't any error report.
Minimal reproducible example
No response
Your computer environment
info Fetching system and libraries information...
System:
OS: macOS 14.6.1
CPU: (8) arm64 Apple M1
Memory: 122.19 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.5
path: ~/.nvm/versions/node/v18.20.5/bin/node
Yarn:
version: 1.22.19
path: ~/.nvm/versions/node/v18.20.5/bin/yarn
npm:
version: 10.8.2
path: ~/.nvm/versions/node/v18.20.5/bin/npm
Watchman:
version: 2024.12.02.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK:
API Levels:
- "31"
- "34"
- "35"
Build Tools:
- 30.0.2
- 30.0.3
- 31.0.0
- 34.0.0
- 35.0.0
- 36.0.0
System Images:
- android-35 | Google APIs ARM 64 v8a
- android-35 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2024.2 AI-242.23339.11.2421.12700392
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.13
path: /Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home/bin/javac
Ruby:
version: 3.2.2
path: /Users/valancewang/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.76.5
wanted: 0.76.5
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 18
same here
I was facing the same issue, but I followed these steps, and it started working for me:
Thank you very much for your reply.
I got this error message.
npm error 404 Not Found - GET https://registry.npmjs.org/rnvi-update-plist - Not foundnpm error 404 'rnvi-update-plist@*' is not in this registry.I’m having this same issue with RN version 0.73.11 and RNVI versions
In the migration guide it says:
“Fonts are now automatically loaded on iOS, so you can remove any fonts you have listed in Info.plist”
That does not seem to work. I was able to make icons visible only after adding the fonts to Info.plist
@valance Do you have
@react-native-vector-icons/commoninstalled? If so, thennpx rnvi-update-plist package.json ios/AppName/Info.plistshouldn’t return that errorYou should see it symlinked in
node_modules/.binApologies the MIGRATION guide was outdated. The fonts do still need to be included in the Info.plist. WSe have a handy script to help with that referenced in https://github.com/oblador/react-native-vector-icons/blob/master/docs/SETUP-REACT-NATIVE.md#ios
@valance Did you rebuild the app after updating Info.plist?
Same here, I’m getting this problem with
material-design-icons"@react-native-vector-icons/material-design-icons": "^7.4.47"Update 1:
Info.plistand works wellSome for me, but only on a physical deviceIm having this issue only on a physical device strangely, all seems to behave as expected in an emulator.