react-native-swiper-animated icon indicating copy to clipboard operation
react-native-swiper-animated copied to clipboard

Can I update array-data dynamically?

Open vishalTechnoFreek opened this issue 8 years ago • 3 comments

Thanks for the great module. I am trying to replace an array that provides data to swiper cards. I tried it using setState() inside onFinish() function. But it is not working.

vishalTechnoFreek avatar Jul 27 '17 15:07 vishalTechnoFreek

It's not possible as is, but you can fork and make an easy change to achieve that.

Just add componentWillReceiveProps and update the card state

chitezh avatar Mar 09 '18 18:03 chitezh

I need to do something like tinder with infinites swipes, adding data by lazy load and the card must have vertical scroll, do you think that i can achieve this with this lib? thanks

pcg92 avatar Mar 09 '18 18:03 pcg92

Yes, but you have to fork it and make the necessary changes

chitezh avatar Mar 09 '18 18:03 chitezh