File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,13 +23,15 @@ interface OverlayModalProps {
2323 closeOverlay : ( ) => void ;
2424 children : ReactNode ;
2525 height ?: number ;
26+ contentPaddingBottom ?: number ;
2627}
2728
2829const OverlayModal : React . FC < OverlayModalProps > = ( {
2930 visible,
3031 closeOverlay,
3132 children,
3233 height : height ,
34+ contentPaddingBottom = 20 ,
3335} ) => {
3436 const modalContentStyle = [
3537 styles . modalContent ,
@@ -51,9 +53,9 @@ const OverlayModal: React.FC<OverlayModalProps> = ({
5153 showsVerticalScrollIndicator = { true }
5254 persistentScrollbar = { true }
5355 style = { styles . scrollContainer }
54- contentContainerStyle = { styles . scrollContentContainer }
56+ contentContainerStyle = { { paddingBottom : contentPaddingBottom } }
5557 >
56- < View style = { styles . scrollContent } > { children } </ View >
58+ { children }
5759 </ ScrollView >
5860 < View style = { styles . closeButtonContainer } >
5961 < ExampleAppButton
@@ -94,10 +96,6 @@ const styles = StyleSheet.create({
9496 scrollContainer : {
9597 flex : 1 ,
9698 } ,
97- scrollContentContainer : {
98- paddingBottom : 20 ,
99- } ,
100- scrollContent : { } ,
10199 closeButtonContainer : {
102100 marginTop : 8 ,
103101 shadowColor : '#000' ,
Original file line number Diff line number Diff line change @@ -367,6 +367,7 @@ const IntegrationTestsScreen = () => {
367367 setIsOverlayOpen ( false ) ;
368368 } }
369369 height = { overlayMinHeight }
370+ contentPaddingBottom = { 500 }
370371 >
371372 < ExampleAppButton
372373 title = "testNavigationSessionInitialization"
You can’t perform that action at this time.
0 commit comments