question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AnimatedLayout breaking iOS touch when using with react-native-modal

See original GitHub issue

Description

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

https://user-images.githubusercontent.com/17752968/129127972-a3fdd287-b88b-44bb-b845-a0cc0f5023d8.mov

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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
piaskowykcommented, Sep 9, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found