You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using React Native 0.52.3 and custom tab icons were working as expected, as you can see in the image but once i updated React Native to the latest version they stopped working with no changes applied to the code or anything
The Icons are missing from the tab but the onPress behaviour works. It's not a problem with the icons library because they are shown in the whole app apart from the tab bar.
Steps to reproduce
For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.
Update to RN 0.54.4
Use custom Icon on the bar with react-native-vector-icons library
Check that the icons are not showing
Update
I managed to fix the issue, It seems like for some reason you need to add the width to the style of the Icon and it will be shown again.
Version
Tell us which versions you are using:
Expected behaviour
I was using React Native 0.52.3 and custom tab icons were working as expected, as you can see in the image but once i updated React Native to the latest version they stopped working with no changes applied to the code or anything
Actual behaviour
The Icons are missing from the tab but the onPress behaviour works. It's not a problem with the icons library because they are shown in the whole app apart from the tab bar.
Steps to reproduce
For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.
Update
I managed to fix the issue, It seems like for some reason you need to add the width to the style of the Icon and it will be shown again.
The text was updated successfully, but these errors were encountered: