software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
6.13k stars 982 forks source link

Rewrite `bottomSheet` example as functional component #3129

Closed latekvo closed 1 month ago

latekvo commented 1 month ago

Description

Rewrite bottomSheet example to be a function style component, to fix crashes on macOS and make working with this example easier.

Test plan

latekvo commented 1 month ago

This change is a duplicate of example/src/new_api/bottom_sheet. Fixes regarding Dimensions.get('window').height crashing on MacOS will be done in a separate PR, changing the entire file structure is not necessary to fix these crashes.