@@ -16,7 +16,7 @@ import {
1616 ActivityIndicator ,
1717 Modal ,
1818} from "react-native" ;
19- import { SafeAreaView } from "react-native-safe-area-context" ;
19+ import { useSafeAreaInsets } from "react-native-safe-area-context" ;
2020import * as Clipboard from "expo-clipboard" ;
2121import { useWalletStore } from "../src/wallet/wallet-store" ;
2222import { verifyPin } from "../src/storage/secure-store" ;
@@ -38,6 +38,7 @@ type ExportStep = "pin" | "select" | "passphrase" | "result";
3838// ---------------------------------------------------------------------------
3939
4040export default function ExportKeyScreen ( ) {
41+ const insets = useSafeAreaInsets ( ) ;
4142 const addresses = useWalletStore ( ( s ) => s . addresses ) ;
4243 const network = useWalletStore ( ( s ) => s . network ) ;
4344
@@ -189,7 +190,7 @@ export default function ExportKeyScreen() {
189190
190191 if ( step === "pin" ) {
191192 return (
192- < SafeAreaView className = "flex-1 bg-fair-dark" >
193+ < View className = "flex-1 bg-fair-dark" style = { { paddingTop : insets . top } } >
193194 < View className = "flex-1 items-center justify-center px-8" >
194195 < Text className = "text-white text-xl font-bold mb-2" > Verify PIN</ Text >
195196 < Text className = "text-fair-muted text-sm mb-6 text-center" >
@@ -259,16 +260,17 @@ export default function ExportKeyScreen() {
259260 ) ) }
260261 </ View >
261262 </ View >
262- </ SafeAreaView >
263+ </ View >
263264 ) ;
264265 }
265266
266267 if ( step === "select" ) {
267268 return (
268- < SafeAreaView className = "flex-1 bg-fair-dark" >
269+ < View className = "flex-1 bg-fair-dark" >
269270 < ScrollView
270271 className = "flex-1"
271272 contentContainerClassName = "px-6 pt-6 pb-8"
273+ contentContainerStyle = { { paddingTop : insets . top } }
272274 >
273275 < Text className = "text-white text-xl font-bold mb-2 text-center" >
274276 Select Address
@@ -304,16 +306,17 @@ export default function ExportKeyScreen() {
304306 </ View >
305307 ) }
306308 </ ScrollView >
307- </ SafeAreaView >
309+ </ View >
308310 ) ;
309311 }
310312
311313 if ( step === "passphrase" ) {
312314 return (
313- < SafeAreaView className = "flex-1 bg-fair-dark" >
315+ < View className = "flex-1 bg-fair-dark" >
314316 < ScrollView
315317 className = "flex-1"
316318 contentContainerClassName = "px-6 pt-6 pb-8"
319+ contentContainerStyle = { { paddingTop : insets . top } }
317320 keyboardShouldPersistTaps = "handled"
318321 >
319322 < Text className = "text-white text-xl font-bold mb-2 text-center" >
@@ -366,16 +369,17 @@ export default function ExportKeyScreen() {
366369 loading = { encrypting }
367370 />
368371 </ ScrollView >
369- </ SafeAreaView >
372+ </ View >
370373 ) ;
371374 }
372375
373376 // Result step
374377 return (
375- < SafeAreaView className = "flex-1 bg-fair-dark" >
378+ < View className = "flex-1 bg-fair-dark" >
376379 < ScrollView
377380 className = "flex-1"
378381 contentContainerClassName = "px-6 pt-6 pb-8"
382+ contentContainerStyle = { { paddingTop : insets . top } }
379383 >
380384 < Text className = "text-white text-xl font-bold mb-2 text-center" >
381385 Encrypted Key
@@ -415,6 +419,6 @@ export default function ExportKeyScreen() {
415419 </ Text >
416420 </ View >
417421 </ ScrollView >
418- </ SafeAreaView >
422+ </ View >
419423 ) ;
420424}
0 commit comments