Skip to content

Commit deac702

Browse files
removing InteractionManager to fix modal not showing issue
1 parent ec957fa commit deac702

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

react-navigation-overlay.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ export const ReactNavigationOverlay = ({ style, animationIn="slideInUp", animati
1212
useEffect(() => Overlay.register(thisRef), [thisRef]);
1313
useImperativeHandle(thisRef, () => ({
1414
show: (component, props = {}) => {
15-
InteractionManager.runAfterInteractions(() => {
16-
ComponentJsxRef.current = component;
17-
setComponentPropsRef(props);
18-
setIsVisible(true)
19-
});
15+
ComponentJsxRef.current = component;
16+
setComponentPropsRef(props);
17+
setIsVisible(true)
2018
},
2119
close: () => {
2220
setIsVisible(false);

0 commit comments

Comments
 (0)