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

Fix build on RN 0.74 #3024

Closed m-bert closed 3 months ago

m-bert commented 3 months ago

Description

Changes made in #2966 were necessary for Gesture Handler to work with React Native 0.75. Unfortunately, they also broke builds on versions below 0.75. This PR fixes those builds.

Fixes #3023

Test plan

I've tested following scenarios:

  1. New React Native 0.74.3 app without these changes - build fails 🔴
  2. New React Native 0.74.3 app with this PR applied - builds properly 🟢
  3. New React Native 0.75.0-rc.6 app with this PR applies - builds properly 🟢