Skipperlla / rn-swiper-list

⚡ Lightning fast and customizable tinder-like swiper for React Native
https://www.npmjs.com/package/rn-swiper-list
MIT License
97 stars 9 forks source link

Property is not configurable #20

Closed Smigi33 closed 4 days ago

Smigi33 commented 3 weeks ago

Hi! I have a problem with passing the updated data array when re-entering the screen where I use your list. Being on screen 1, I click on the second photo, move to screen 2 where I use your list, click the heart to change the attribute in the data array on screen 1 using Redux, go back to screen 1, and see the heart on the second photo. When I want to view this photo again, I click on it to go back to screen 2, and a Reanimated library error pops up. I suspect that the list keeps certain values that do not reset. Sometimes an error with the description appears - [Reanimated] Tried to modify key ${key} of an object which has been already passed to a worklet. See https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#tried-to-modify-key-of-an-object-which-has-been-converted-to-a-shareable for more details.[

https://github.com/Skipperlla/rn-swiper-list/assets/110234655/c54429e9-bbd6-449a-a035-82f8e6905d74

]

System: OS: macOS 14.5 CPU: (11) arm64 Apple M3 Pro Memory: 87.22 MB / 18.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 22.2.0 path: /opt/homebrew/bin/node Yarn: version: 1.22.22 path: /opt/homebrew/bin/yarn npm: version: 10.7.0 path: /opt/homebrew/bin/npm Watchman: version: 2024.05.06.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.15.2 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms:

Skipperlla commented 2 weeks ago

I'll work on it.

Skipperlla commented 1 week ago

I've tried a test on this but I'm guessing that you may have missed a part in the use of the library, also if you can send me your code I can quickly debug it. @Smigi33