-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Modal's onDismiss callback is wrongly implemented in 0.61.0-rc.3 #26473
Comments
The commit bd2b7d6 is a disaster. It actually introduced the problem which it claims to solve in its summary. Would be great to see it reverted asap.
|
Fix for this issue is on the way, I'll try to get it cherry-picked in the next RC for 0.61 as well. #26490 |
This issue has been resolved with a5353c0 |
This still seems to be broken as of 0.61.5 |
The same issue confirmed in 0.62 stable release. It seems the Fix is not included in the new release. |
…r [an issue](facebook#26473) with `Modal`’s `onDismiss` prop. This reverts commit bd2b7d6.
I was sort of hoping, that the onDismiss callback would also fire, if I swipe it away on iOS. It doenst do that for me on 0.62.1 |
@farbexot You should open a new ticket. |
@farbexot did you open the new ticket? I'm expecting the same fix |
Open Modal.js in folder node_modules/react-native/Libraries/Modal, you can see: componentWillUnmount() { componentWillUnmount() { And remove subscription: |
Issue:
With This commit,
onDismiss
onModal
will never be called when dismissed, code below as an example.This is not the intended behavior of this callback according to the document
React Native version:
System:
OS: macOS 10.14.4
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 1.32 GB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.9.0 - /usr/local/bin/node
npm: 6.2.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
IDEs:
Xcode: 11.0/11A419c - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.0-rc.3 => 0.61.0-rc.3
The text was updated successfully, but these errors were encountered: