react-native-vector-icons icon indicating copy to clipboard operation
react-native-vector-icons copied to clipboard

Icons showing differently on different time usages.

Open manju-ms opened this issue 8 years ago • 8 comments

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.

manju-ms avatar Dec 25 '17 08:12 manju-ms

I'm not sure how to reproduce this bug, is this happening in production or just locally?

oblador avatar Jan 08 '18 22:01 oblador

Both in production and test flight build.

manju-ms avatar Jan 09 '18 05:01 manju-ms

Please have look on blue rounded area in the below image. I have used close icon for that but it is showing watch icon.

img-2494_1

manju-ms avatar Jan 09 '18 05:01 manju-ms

Same thing with Octicons named project and tasklist, got an icon but not the one supposed to

XtremXpert avatar Mar 24 '18 01:03 XtremXpert

Could perhaps be a cache issue. Try to clean the build folder first with rm -rf ios/build and then recompiling the app.

oblador avatar Apr 04 '18 20:04 oblador

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

iconerror01

Wrong

iconerror02

react-native 0.55.3 react 16.3.2 react-native-web 0.6.0 react-native-vector-icons 4.6.0

brunolemos avatar Apr 21 '18 00:04 brunolemos

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).

brunolemos avatar May 23 '18 03:05 brunolemos

If this is still happening please comment and I'll reopen and investigate

johnf avatar Aug 03 '23 05:08 johnf