mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
bafc506f7c
Summary:Currently, if the Navigator with the default `NavigatorNavigationBar` has two scenes on its `routeStack` and the bottom one defines a `RightButton` but the top one doesn't, a touch to the location of the underlying `RightButton` will trigger its action. This fix checks if the button's opacity is set to 0 (indicating it has been transitioned off the scene and shouldn't be interacted with) and ignores touch events if so. Closes https://github.com/facebook/react-native/pull/5624 Differential Revision: D3139553 fb-gh-sync-id: 6d6da1459e289499b6d8769120a3b6114548c090 fbshipit-source-id: 6d6da1459e289499b6d8769120a3b6114548c090