Replies: 3 comments 1 reply
-
I reverted to Expo50 and 3.62 - it all is working beautifully again.
My basic flow: I handle that with:
On onChange I see if I have rolled over another tile and call a JS swapTiles Function:
The swapTile function updates tile positions in a Zustand state holder - and the other Tiles are subscribed to changes on their positions - and animate accordingly:
None of this is working well in Expo51 with react-native-reanimated 3.10.1 and the compatible react-native-gesture-handler. What used to be smooth is now super slow and glitchy. |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue - did you ever resolve this? |
Beta Was this translation helpful? Give feedback.
-
@timmytan18 It's an already known bug #5816, I've drastic performance issues on Android when running runOnJS functions, it seems like it has not changed much since. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Upgraded from 3.6.2 to 3.10.1 as part of Expo50 to Expo51 upgrade and now dragging on Android is very slow.
I have an app in which you drag tiles around - and as you drag it affects the position of other tiles. I used runOnJS and got very smooth (silky smooth!) results in 3.6.2. When I used runOnUI it was clunky because as I am dragging I call JS functions - so I needed to be on the JS thread for the reactions to be real-time and smooth.
But when I upgraded to 3.10.1 it became super slow on Android and a bit buggy: rendering of animations didn't always complete until I went and moved a tile again to rerender...
I may just revert for now, but before I do - does any of this sound familiar or potentially be expected with this upgrade?
Beta Was this translation helpful? Give feedback.
All reactions