mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
0d3039f1a0
Summary: **Motivation** On Apple TV, pressing the menu button destroys the native view that backs the `Modal` component, causing an app using this component to get into a broken state. This fix implements `onRequestClose` for tvOS to have the same behavior as it does for the Android back button. **Test plan** Manually tested this with the `ModalExample` in the `RNTester` app. See also the test code in issue #15313. Closes https://github.com/facebook/react-native/pull/15341 Differential Revision: D5651035 Pulled By: shergin fbshipit-source-id: 54bf66887bbe85940567e63e90b437ac4a8daf9a