Page MenuHomePhabricator

D7599.id25719.diff
No OneTemporary

D7599.id25719.diff

diff --git a/native/account/registration/registration-navigator.react.js b/native/account/registration/registration-navigator.react.js
--- a/native/account/registration/registration-navigator.react.js
+++ b/native/account/registration/registration-navigator.react.js
@@ -6,7 +6,7 @@
type StackNavigationHelpers,
} from '@react-navigation/stack';
import * as React from 'react';
-import { View } from 'react-native';
+import { SafeAreaView } from 'react-native-safe-area-context';
import KeyserverSelection from './keyserver-selection.react.js';
import type { RootNavigationProp } from '../../navigation/root-navigator.react.js';
@@ -17,6 +17,8 @@
} from '../../navigation/route-names.js';
import { useStyles } from '../../themes/colors.js';
+const safeAreaEdges = ['bottom'];
+
export type RegistrationNavigationProp<
RouteName: $Keys<RegistrationParamList> = $Keys<RegistrationParamList>,
> = StackNavigationProp<ScreenParamList, RouteName>;
@@ -45,19 +47,19 @@
function RegistrationNavigator(props: Props): React.Node {
const styles = useStyles(unboundStyles);
return (
- <View style={styles.view}>
+ <SafeAreaView style={styles.container} edges={safeAreaEdges}>
<Registration.Navigator screenOptions={screenOptions}>
<Registration.Screen
name={KeyserverSelectionRouteName}
component={KeyserverSelection}
/>
</Registration.Navigator>
- </View>
+ </SafeAreaView>
);
}
const unboundStyles = {
- view: {
+ container: {
flex: 1,
backgroundColor: 'panelBackground',
},

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 6:19 PM (21 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2444915
Default Alt Text
D7599.id25719.diff (1 KB)

Event Timeline