Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: In RELEASE mode, the `devSupportManager` received is ReleaseDevSupportManager for which `showDevOptionsDialog()` is a no-op https://github.com/facebook/react-native/blob/main/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/ReleaseDevSupportManager.java#L66 Which is expected since this is a capability only in Dev mode(useDeveloperSupport = true). However, ATM `onKeyLongPresss()` returns true in RELEASE as well which is a bug. Since there is no need for `onKeyLongPress()` in RELEASE, changing it's logic to introduce that check and return false in case of RELEASE. Changelog: [Android][Fixed] onKeyLongPress() in RELEASE mode Reviewed By: christophpurrer, RSNara Differential Revision: D56850466
- Loading branch information