I have two screens in my app: a color wheel screen and a settings screen. I have observed that when switching between the color wheel and the settings screen multiple times, the application freezes or crashes. This issue occurs because the color wheel re-renders multiple times during navigation. When the color wheel is removed from the screen, everything works fine.
Description
I have two screens in my app: a color wheel screen and a settings screen. I have observed that when switching between the color wheel and the settings screen multiple times, the application freezes or crashes. This issue occurs because the color wheel re-renders multiple times during navigation. When the color wheel is removed from the screen, everything works fine.
evidence: freeze/crash on 0:50 sec in the video.
https://github.com/alabsi91/reanimated-color-picker/assets/173995954/a8b31572-4608-43ed-b775-61134c80b694
Steps to reproduce
back and forth color wheel to setting screen.
Snack or a link to a repository
No response
Reanimated Color Picker version
3.4.2
React Native version
0.70.10
React Native Reanimated version
2.14.0
React Native Gesture Handler version
2.5.0
Platforms
Android, iOS
JavaScript runtime
JSC
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode