@@ -2,6 +2,7 @@ import { FC } from 'react';
22
33import { Platform , Pressable , StatusBar , StyleSheet , View } from 'react-native' ;
44
5+ import { AppContainerWrapper } from './AppContainerWrapper' ;
56import { ScrollContextResetter } from './ScrollContextResetter' ;
67import { GestureHandlerRootView } from './integrations/GestureHandlerRootView' ;
78import RNTModalView from './newarch/NativeRNTModalView' ;
@@ -37,37 +38,39 @@ export const ModalView: FC<ModalViewProps> = ({
3738 onPressBackAndroid = { ( ) => onRequestDismiss ?.( DismissalSource . BackButton ) }
3839 animationType = { animationType }
3940 >
40- < View collapsable = { false } style = { styles . flex } >
41- { isIOS && statusBar && ! disableDefaultStatusBarIOS ? (
42- < StatusBar { ...statusBar } />
43- ) : null }
44- < GestureHandlerRootView style = { styles . flex } >
45- < View style = { [ styles . backdropContainer ] } >
46- < BackdropPressableComponent
47- accessibilityLabel = { backdropAccessibilityLabel }
48- accessibilityHint = { backdropAccessibilityHint }
49- style = { styles . flex }
50- onPress = { ( ) => onRequestDismiss ?.( DismissalSource . Backdrop ) }
51- >
52- { renderBackdrop ? (
53- renderBackdrop ( )
54- ) : (
55- < View
56- style = { [ styles . flex , { backgroundColor : backdropColor } ] }
57- />
58- ) }
59- </ BackdropPressableComponent >
60- </ View >
61- < ScrollContextResetter >
62- < View
63- pointerEvents = 'box-none'
64- style = { [ styles . content , contentContainerStyle ] }
65- >
66- { children }
41+ < AppContainerWrapper >
42+ < View collapsable = { false } style = { styles . flex } >
43+ { isIOS && statusBar && ! disableDefaultStatusBarIOS ? (
44+ < StatusBar { ...statusBar } />
45+ ) : null }
46+ < GestureHandlerRootView style = { styles . flex } >
47+ < View style = { [ styles . backdropContainer ] } >
48+ < BackdropPressableComponent
49+ accessibilityLabel = { backdropAccessibilityLabel }
50+ accessibilityHint = { backdropAccessibilityHint }
51+ style = { styles . flex }
52+ onPress = { ( ) => onRequestDismiss ?.( DismissalSource . Backdrop ) }
53+ >
54+ { renderBackdrop ? (
55+ renderBackdrop ( )
56+ ) : (
57+ < View
58+ style = { [ styles . flex , { backgroundColor : backdropColor } ] }
59+ />
60+ ) }
61+ </ BackdropPressableComponent >
6762 </ View >
68- </ ScrollContextResetter >
69- </ GestureHandlerRootView >
70- </ View >
63+ < ScrollContextResetter >
64+ < View
65+ pointerEvents = 'box-none'
66+ style = { [ styles . content , contentContainerStyle ] }
67+ >
68+ { children }
69+ </ View >
70+ </ ScrollContextResetter >
71+ </ GestureHandlerRootView >
72+ </ View >
73+ </ AppContainerWrapper >
7174 </ RNTModalView >
7275 ) ;
7376} ;
0 commit comments