diff --git a/ts/screens/modal/IdentificationModal.tsx b/ts/screens/modal/IdentificationModal.tsx index 4c35f1f9200..9924f2d206d 100644 --- a/ts/screens/modal/IdentificationModal.tsx +++ b/ts/screens/modal/IdentificationModal.tsx @@ -25,8 +25,8 @@ import { View } from "react-native"; import { ScrollView } from "react-native-gesture-handler"; -import { SafeAreaView } from "react-native-safe-area-context"; import { useDispatch } from "react-redux"; +import { useSafeAreaInsets } from "react-native-safe-area-context"; import I18n from "../../i18n"; import { identificationCancel, @@ -256,6 +256,8 @@ const IdentificationModal = () => { /> )); + const { top: topInset } = useSafeAreaInsets(); + const pictogramKey: IOPictograms = isValidatingTask ? "passcode" : "key"; // Managing the countdown and the remaining attempts @@ -339,9 +341,12 @@ const IdentificationModal = () => { onRequestClose={onRequestCloseHandler} > {Platform.OS === "ios" && } - + {isValidatingTask && ( - + { - + ); }; const styles = StyleSheet.create({ - safeArea: { flexGrow: 1 }, + contentWrapper: { flexGrow: 1 }, closeButton: { zIndex: 100, flexGrow: 1,