react-native-flip-card icon indicating copy to clipboard operation
react-native-flip-card copied to clipboard

Doesnt work with flatlist

Open ghost opened this issue 7 years ago • 3 comments

While using FlipCard with flat list it animates all the rendered images on click of any one image.

ghost avatar Oct 08 '18 10:10 ghost

I have FlipCard working within a FlatList. If I had to guess, you're likely not binding the flip on a per-instance basis.

derekbrown avatar Apr 04 '19 20:04 derekbrown

@derekbrown Can you please share the code to show how to bind the flip on a per-instance basis !

itsVagabond avatar Jun 18 '19 12:06 itsVagabond

@itsVagabond Set and toggle the flip state inside a separate child component, then use the renderItem property of FlatList to render those child components.

derekbrown avatar Jun 18 '19 13:06 derekbrown