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
5.83k stars 952 forks source link

Move `customDirectEventTypes` to separate files. #2786

Closed m-bert closed 1 month ago

m-bert commented 1 month ago

Description

customDirectEventTypes import inside createHandler introduced in #2766 makes web unable to compile since react-native-web doesn't provide this object. This PR moves mentioned import into separate file and splits it into .ts and .web.ts parts

Test plan

Tested on web and FabricExample app.