Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3174826
D7599.id25719.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7599.id25719.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7599: [native] Add SafeAreaView to RegistrationContainer
Attached
Detach File
Event Timeline
Log In to Comment