Latest release (1.9.0) breaks build

Description

When running npx react-native run-ios the build fails with the following errors:

/Users/xxx/MyApp/node_modules/react-native-gesture-handler/ios/Handlers/RNPanHandler.m:212:18:
error: property 'allowedScrollTypesMask' not found on object of type 'RNBetterPanGestureRecognizer *'
      recognizer.allowedScrollTypesMask = UIScrollTypeMaskAll;
                 ^
/Users/xxx/MyApp/node_modules/react-native-gesture-handler/ios/Handlers/RNPanHandler.m:212:43:
error: use of undeclared identifier 'UIScrollTypeMaskAll'
      recognizer.allowedScrollTypesMask = UIScrollTypeMaskAll;

Downgrading to 1.8.0 solves the issue.

Package versions

  • React: 16.13.1
  • React Native: 0.63.2
  • React Native Gesture Handler: 1.9.0

5 thoughts on “Latest release (1.9.0) breaks build

  1. yes I can confirm this as well Im running

    React: 16.13.1
    React Native: 0.63.3
    React Native Gesture Handler: 1.9.0
    XCode: 11.3.1
    iOS simulator device version: 13.3.1

    Downgraded back to 1.8.0 immediately works again

  2. i comment during development this part at RNPanHandler.m and build works:

      if (@available(iOS 13.4, *)) {
        bool enableTrackpadTwoFingerGesture = [RCTConvert BOOL:config[@"enableTrackpadTwoFingerGesture"]];
        if(enableTrackpadTwoFingerGesture){
          recognizer.allowedScrollTypesMask = UIScrollTypeMaskAll;
        }
    }
    

    and my problem with reanimated 2)