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

Change `.web` files to default and add `.native` #2835

Closed m-bert closed 3 weeks ago

m-bert commented 1 month ago

Description

This PR moves content of .web files into default ones, which are replaced by .native. We do this because metro is good at resolving those types of files, but other bundlers are not.

Change in tsconfig assures, that types are correctly resolved.

Test plan

Built and played a little bit with example app on: