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.

Modal make iOS app freeze when visible

See original GitHub issue

Description

I faced this for from react native version 0.65 till now. Open a modal then close it make app freeze on both actual iOS device and simulator. When I install to new simulator or new ios device, it’s fine to oepn modal on first time, but when reopen app, It makes app freeze again.

Version

0.66.1

Output of react-native info

OS: macOS 11.2.3 CPU: (12) x64 Intel® Core™ i5-10400 CPU @ 2.90GHz Memory: 49.63 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.16.0 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 6.14.11 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: Not Found IDEs: Android Studio: Not Found Xcode: 12.4/12D4e - /usr/bin/xcodebuild Languages: Java: 11.0.11 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.1 => 0.66.1 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Open a modal then close it make app freeze on both actual iOS device and simulator, sometime can tap to view inside modal, sometime not, app is freeze. Also when modal was closed, it still make app freeze

Snack, code example, screenshot, or link to a repository

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:9
  • Comments:29 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
pramodsharma403commented, Nov 1, 2021

I am also facing the same issue.

3reactions
bbernagcommented, Jan 12, 2022

1.- downgrading react-native-reanimated to 2.2.3 2.- cd ios && pod deintegrate 3.- pod install

this solved my problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-Native Controlled Modal Freezing - Stack Overflow
When I click the show modal button the modal pops-up as expected but when I click closeModal then the modal disappears and reappears...
Read more >
react-native-modal - npm
The modal is controlled by the isModalVisible state variable and it is initially hidden, since its value is false . Pressing the button...
Read more >
Modal - React Native
The supportedOrientations prop allows the modal to be rotated to any of the specified orientations. On iOS, the modal is still restricted by ......
Read more >
Stack Navigator | React Navigation
Stack Navigator provides a way for your app to transition between screens where ... to make the previous screen visible underneath (for transparent...
Read more >
Severe bug: Modal Interface Contro… | Apple Developer Forums
If you have an app with a modal interface controller visible, ... (Make sure to set a modular clock face with a modular...
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