We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3126e49 commit ef5e490Copy full SHA for ef5e490
1 file changed
packages/rn-tester/js/examples/Modal/ModalPresentation.js
@@ -87,13 +87,7 @@ function ModalPresentation() {
87
if (action === 'onShow') {
88
alert('onShow');
89
}
90
- if (ref != null) {
91
- setModalOpened(true);
92
- }
93
- };
94
-
95
- React.useEffect(() => {
96
- if (ref != null && modalOpened === true) {
+ if (ref != null && visible === true) {
97
if (Platform.OS === 'ios') {
98
// $FlowFixMe
99
AccessibilityInfo.sendAccessibilityEvent(ref.current, 'focus');
@@ -102,7 +96,7 @@ function ModalPresentation() {
102
AccessibilityInfo.sendAccessibilityEvent(ref.current, 'viewHoverEnter');
103
104
105
- }, [modalOpened]);
+ };
106
100
107
101
/* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's
108
* LTI update could not be added via codemod */
0 commit comments