moschan / react-native-flip-card

The card component which has a motion of flip for React Native(iOS/Android)
MIT License
390 stars 108 forks source link

Content flashes #56

Open Noitidart opened 6 years ago

Noitidart commented 6 years ago

Hi there,

Do you know why the content within the card flashes (hides then reappears instantly) after the transform animation starts (and also right before the animation ends)?

High quality webm - https://gfycat.com/SplendidCompetentEnglishpointer

Low quality gif:

Noitidart commented 6 years ago

Found solution - https://stackoverflow.com/a/47825270/1828637 - apparently between the degrees of 0.1 and 0.4 things disappear, it's a bug in RN, I have to find it and link it here.

Symyon commented 6 years ago

In my case, I found that using some combination of styles (padding, borderRadius) in combination with the transformation will generate this issues. Also if not setting scaleX: -1 in the library itself will also work as it should , but obviously the image is flipped. No solution how to solve this yet.

Noitidart commented 6 years ago

Very interesting @Symyon! Thanks for sharing!