Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load
RNGestureHandlerModule
lazily on iOS (#3166)
## Description At the time, the `RNGestureHandlerModule` is loaded when the `createReanimatedModule` method is called. This causes `RCTBridge required dispatch_sync to load RNGestureHandlerModule.` warning to appear. This PR changes it, so the module is loaded only the first time the `setGestureState` function is called. ## Test code and steps to reproduce Install `react-native-reanimated` and `react-native-gesture-handler` and check if the warning appears.
- Loading branch information
1 parent
38b1058
commit d6c7304
Showing
2 changed files
with
6 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters