AnimatedLayout breaking iOS touch when using with react-native-modal
See original GitHub issueDescription
Problem with reanimated 2 AnimatedLayout when using with react-native-modal library
Expected behavior
The Modal opens inside a AnimatedLayout
component, and when you close it the touch does not stop working
Actual behavior & steps to reproduce
When you toggle the modal inside a AnimatedLayout
it disables all touch events on the app
To reproduce this issue you need
@react-navigation/native@5.9.4
@react-navigation/stack@5.14.5
react-native-reanimated@2.3.0-alpha.1
react-native-modal@12.0.3
yarn
You also need to fix the problem related to the issue #2124 so it won’t break when initializing the app
cd ios && pod install
cd .. && yarn ios
Snack or minimal code example
You can see all the code by following the link bellow: https://github.com/raulmax319/react-native-typescript-redux-boilerplate/tree/repro/rn-modal
This is a example video of the actual behavior
Package versions
- React Native: 0.64.1
- React Native Reanimated: 2.3.0-alpha.1
- NodeJS: 16.1.0
- Xcode: 12.5.1
Affected platforms
- Android
- [ X ] iOS
- Web
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Flutter for React Native developers
Learn how to apply React Native developer knowledge when building Flutter apps. ... Layouts. How do I use widgets to define layout properties?...
Read more >React native modal animation popup example with overlay
Cool react native modal animation pop up with pointerEvents. We have covered the below things about modal box1. Modal multiple buttons2.
Read more >Modals - iOS Design Handbook
Several basic animation techniques can be used when presenting a modal, making the users aware of the context shift. Typically appearing from a...
Read more >Avoid Keyboard in React Native Like a Pro - Netguru
react -native-keyboard-manager is a wrapper library for iOS IQKeyboardManager . It is a “go-to” solution used in Swift & Objective-C projects. It ...
Read more >react native gesture handler is not working with modal in ...
I am having an issue in using PanGestureHandler from react-native-gesture-handler with Modal . This is perfectly working in iOS but not in ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Resolved by - https://github.com/software-mansion/react-native-reanimated/pull/2581
The reason for the problem with null ptr is probably the same as in #2369
But I can confirm that problem with modal still exists on alpha.3