55 HSpacer ,
66 IconButton ,
77 IOColors ,
8+ IOSpacing ,
9+ IOSpacingScale ,
10+ useFooterActionsMeasurements ,
811 useIOTheme ,
912 VSpacer
1013} from "@pagopa/io-app-design-system" ;
@@ -13,7 +16,7 @@ import { constNull, pipe } from "fp-ts/lib/function";
1316import * as O from "fp-ts/lib/Option" ;
1417import I18n from "i18next" ;
1518import { useCallback , useRef , useState } from "react" ;
16- import { StyleSheet } from "react-native" ;
19+ import { StyleSheet , View } from "react-native" ;
1720import Pdf , { PdfRef } from "react-native-pdf" ;
1821import { SafeAreaView } from "react-native-safe-area-context" ;
1922import { ExistingSignatureFieldAttrs } from "../../../../definitions/fci/ExistingSignatureFieldAttrs" ;
@@ -60,8 +63,13 @@ const DocumentWithSignature = (props: Props) => {
6063 const dispatch = useIODispatch ( ) ;
6164 const onContinuePress = ( ) => props . onClose ( ) ;
6265
66+ const extraFooterActionsMargin : IOSpacingScale = 16 ;
67+
6368 const theme = useIOTheme ( ) ;
6469
70+ const { footerActionsMeasurements, handleFooterActionsMeasurements } =
71+ useFooterActionsMeasurements ( ) ;
72+
6573 const continueButtonProps : ButtonBlockProps = {
6674 onPress : onContinuePress ,
6775 label : I18n . t ( "features.fci.documents.footer.backToSignFieldsList" )
@@ -225,8 +233,19 @@ const DocumentWithSignature = (props: Props) => {
225233 disabled = { false }
226234 testID = { "FciDocumentsNavBarTestID" }
227235 />
228- < RenderMask />
236+ < View
237+ style = { {
238+ flex : 1 ,
239+ marginBottom :
240+ footerActionsMeasurements . safeBottomAreaHeight -
241+ IOSpacing . screenEndMargin +
242+ extraFooterActionsMargin
243+ } }
244+ >
245+ < RenderMask />
246+ </ View >
229247 < FooterActions
248+ onMeasure = { handleFooterActionsMeasurements }
230249 actions = { {
231250 type : "SingleButton" ,
232251 primary : continueButtonProps
0 commit comments