iOS: 6/7 JS only. Remove logic for visible prop in JS, and pass it to native
Summary: Changelog: [Fabric][iOS] Use non-global event emitter for onDismiss event for <Modal> Reviewed By: fkgozali Differential Revision: D28138741 fbshipit-source-id: df9069e523f2e8bd1b85f3d9be55cfd300f89d66
This commit is contained in:
Родитель
fa899cb51f
Коммит
40706e0546
|
@ -219,7 +219,7 @@ class Modal extends React.Component<Props> {
|
|||
}
|
||||
|
||||
render(): React.Node {
|
||||
if (this.props.visible !== true) {
|
||||
if (Platform.OS !== 'ios' && this.props.visible !== true) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче