From 34b8d07bfbb5797799cd462709a5327ea7f37571 Mon Sep 17 00:00:00 2001 From: Evgen Filatov Date: Wed, 26 May 2021 10:34:02 -0700 Subject: [PATCH] Back out "iOS: 6/7 JS only. Remove logic for visible prop in JS, and pass it to native" Summary: Changelog: [Internal] back out D28138741 (https://github.com/facebook/react-native/commit/40706e0546a5dccb5ef0944023dea2c32d8b46b3) Differential Revision: D28709374 fbshipit-source-id: c7085588ab4573c0ca18a2324f8e1ed40384753c --- Libraries/Modal/Modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Modal/Modal.js b/Libraries/Modal/Modal.js index ceaec6bf608..7786a1e6650 100644 --- a/Libraries/Modal/Modal.js +++ b/Libraries/Modal/Modal.js @@ -219,7 +219,7 @@ class Modal extends React.Component { } render(): React.Node { - if (Platform.OS !== 'ios' && this.props.visible !== true) { + if (this.props.visible !== true) { return null; }