alexbrillant / react-native-deck-swiper

tinder like react-native deck swiper
ISC License
1.56k stars 465 forks source link

undefined is not an object (evaluating 'value.getValue') #275

Open georgeMorales opened 4 years ago

georgeMorales commented 4 years ago

Screenshot_1573555042 Swiper works correctly, but when I want to filter the items, sometimes I get this error, most of the time I don't ... Do you know what it can be or some way to solve it? Thank you

innergap commented 4 years ago

I get exact same error although it always happens for me for one particular slide. Can't figure out why.

georgeMorales commented 4 years ago

It happens to me strangely, and I have long searched for the problem and I never find it :(

innergap commented 4 years ago

The error actually just disappeared with no change to the code. It also only happened on a simulator and not on the device pointed to localhost expo. (using expo v35, react-native-deck-swiper ^1.6.7). Once again weird because it was only having that issue with one particular data point / slide - which was obviously the same between simulator and device.

georgeMorales commented 4 years ago

I am glad that it works well, in my case the error undefined is not an object error (evaluating 'value.getValue') was an error that I made in componentDidUpdate that I have already fixed and now works fine. However I was using deck swiper 1.5.25 because with expo sdk 35 I have some failures, such as that it slows down and makes a strange effect the swipe when there are 4 items left on the list, it works fine but always the last 4 makes a strange move . Apart create a function to reset the deck that also does not work ... The fact is that I would not update, but yesterday I updated to sdk expo 36 and deck swiper 1.5.25 has obsolete life cycle methods such as componentRecieveProps, componentWillMount and that is that the latest version of deck swiper gives me many problems :)