react-native-reanimated-bottom-sheet icon indicating copy to clipboard operation
react-native-reanimated-bottom-sheet copied to clipboard

Exception thrown while executing UI block

Open me1k opened this issue 3 years ago • 7 comments

I#M on a typescript project (don't know if this is the problem) but, when i try to close it on buttonPress with sheet.current?.snapTo(1) it thros this error

Bildschirmfoto 2021-03-24 um 16 46 34

me1k avatar Mar 24 '21 15:03 me1k

Hi, Same random issue! Do you have an idea to fix it? Thanks

alaporterie avatar Mar 26 '21 15:03 alaporterie

Same issue, I am using Expo and plain JavaScript. Happens only on iOS device, android emulator works fine.

randomprogramming avatar Mar 29 '21 13:03 randomprogramming

same here ! IOS simulator only. Not using expo . "react-native": "0.63.4" "reanimated-bottom-sheet": "^1.0.0-alpha.22",

29er avatar Mar 29 '21 23:03 29er

I fixed this. I realized I did not fully understand snapPoints and sliderRef.current?.snapTo(). i was trying to snap to a point that didnt exist

29er avatar Mar 29 '21 23:03 29er

@29er hi, what do you mean? which fix did you do?

Thanks, Anthony

alaporterie avatar Apr 01 '21 14:04 alaporterie

i was snapping to a pixel, not an index. this caused the error.

29er avatar Apr 02 '21 01:04 29er

OK thanks, I have the issue event I'm snapping to a pixel...

alaporterie avatar Apr 07 '21 08:04 alaporterie