react-native-gesture-handler: iOS 2.1.0 - RCTBridge required dispatch_sync to load RNGestureHandlerModule. This may lead to deadlocks

Description

After upgrading from 1.x to 2.1.0, the following warning shows every time the iOS app is opened: RCTBridge required dispatch_sync to load RNGestureHandlerModule. This may lead to deadlocks

Note, this only seem to happen when reanimated 2 is used, no warnings with reanimated 1.

Screenshots

Steps To Reproduce

  1. Install “react-native-gesture-handler”: “2.1.0”,
  2. import 'react-native-gesture-handler'; on index.js
  3. Wrap the main component in GestureHandlerRootView
  4. Start the app on iOS and observe the warning.

Expected behavior

No warnings.

Actual behavior

Warnings.

Snack or minimal code example

Package versions

  • React: 17.0.2
  • React Native: 0.66.3
  • React Native Gesture Handler: 2.1.0
  • React native reanimated: 2.3.1

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 17
  • Comments: 16 (1 by maintainers)

Most upvoted comments

+1

How to reproduce:

  1. npx react-native init MyApp
  2. cd MyApp && yarn add react-native-reanimated react-native-gesture-handler
  3. cd ios && pod install && cd …
  4. npx react-native run-ios

same here!