-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model reopens right after closing it and unable to close it back again #34018
Comments
Solved this problem by wrapping Modal inside Example:
|
Hello, I'm facing the same issue after upgrading from 0.65.1 to 0.69.1 and sadly @rajtejani 's fix doesn't work here. Even if I conditionally don't render the modal when it's not supposed to be Edit : tried with react-native-modal and there modal is simply freezing the app after closing. Edit 2 : noticed this only happens on modals with transparent background. |
I am facing this issue also on
|
@psnfrench I also had a problem in that version too and the fix which worked me for was just wrapping my Modal code with The above fix which I suggested is not a full-proof solution. It doesn't work in situations where you have one common modal and you are trying to open and close using refs. Something like this. CommonModal.js
App.js
|
same for me |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Description
Modal reopens right after closing it and doesn't allow me to close it. I'm importing Modal from
react-native
.could it be possible due to the
react-native-gesture-handler
Version
0.67.3
Output of
npx react-native info
System:
OS: macOS 11.2
CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
Memory: 58.17 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node
Yarn: 1.22.17 - ~/.nvm/versions/node/v14.17.0/bin/yarn
npm: 6.14.13 - ~/.nvm/versions/node/v14.17.0/bin/npm
Watchman: 2021.10.18.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK:
API Levels: 23, 28, 29, 30
Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3
System Images: android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7784292
Xcode: 12.5/12E262 - /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.67.3 => 0.67.3
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
I updated React Native version from 0.63.0 to 0.67.3 recently. And then I saw this issue happening to me. I also created one more React Native app with a 0.67.3 version and it was also happening to that app as well. I found one solution to wrap Component inside . That worked on 2nd app which I created for test purposes but not working in my current app.
Snack, code example, screenshot, or link to a repository
Untitled.mp4
The text was updated successfully, but these errors were encountered: