Icons showing differently on different time usages.
I am using OctIcon icons using below line. import OctIcon from 'react-native-vector-icons/Octicons'.
In my view i have included like this: <OctIcon name="x" style={{textAlign:'center'}} size={Dimensions.get('window').height * 0.05} color="white" />
But each time i use the app, i am getting different icons. Rare cases i will see close icon. many times it shows watch icon.
I'm not sure how to reproduce this bug, is this happening in production or just locally?
Both in production and test flight build.
Please have look on blue rounded area in the below image. I have used close icon for that but it is showing watch icon.
Same thing with Octicons named project and tasklist, got an icon but not the one supposed to
Could perhaps be a cache issue. Try to clean the build folder first with rm -rf ios/build and then recompiling the app.
I'm having a similar issue.
- Wrong Octicons are shown
- Introduced on v4.6.0 (shows correctly on <= v4.5.0)
- They are not random, it always show the same wrong icon
- Issue only on web, works correctly on iOS emulator
- Probably caused by https://github.com/oblador/react-native-vector-icons/commit/91ea8e36465c44610135a56ccca4269ce2bbc2cc#diff-56fe82b7efe03b9ce4fea1483827bafb
Correct

Wrong

react-native 0.55.3 react 16.3.2 react-native-web 0.6.0 react-native-vector-icons 4.6.0
In my case, I think it was indeed a cache issue with the browser (I'm using it on a web project). Also I had not setup the web integration correctly (adding the font-family style to the page etc).
If this is still happening please comment and I'll reopen and investigate