alabsi91 / reanimated-color-picker

A Pure JavaScript Color Picker for React Native
https://alabsi91.github.io/reanimated-color-picker/
MIT License
234 stars 16 forks source link

App screen freeze/crash when color wheel loads or re-renders multiple times #82

Open rahul15955Rsys opened 1 month ago

rahul15955Rsys commented 1 month ago

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

alabsi91 commented 1 month ago

Interesting. The issue might be caused by a native library, and I can't proceed without a repo that replicates the problem.