Skip to content

Commit

Permalink
chore: updated E2EEnterYourPasswordView layout
Browse files Browse the repository at this point in the history
  • Loading branch information
OtavioStasiak committed Nov 18, 2024
1 parent 1abd1b3 commit bd56113
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 6 additions & 2 deletions app/stacks/InsideStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,11 @@ const E2EEnterYourPasswordStackNavigator = () => {

return (
<E2EEnterYourPasswordStack.Navigator screenOptions={{ ...defaultHeader, ...themedHeader(theme) }}>
<E2EEnterYourPasswordStack.Screen name='E2EEnterYourPasswordView' component={E2EEnterYourPasswordView} />
<E2EEnterYourPasswordStack.Screen
name='E2EEnterYourPasswordView'
component={E2EEnterYourPasswordView}
options={{ presentation: 'modal' }}
/>
</E2EEnterYourPasswordStack.Navigator>
);
};
Expand All @@ -305,7 +309,7 @@ const InsideStackNavigator = () => {
<InsideStack.Screen
name='E2EEnterYourPasswordStackNavigator'
component={E2EEnterYourPasswordStackNavigator}
options={{ headerShown: false }}
options={{ headerShown: false, presentation: 'modal' }}
/>
<InsideStack.Screen name='AttachmentView' component={AttachmentView} />
<InsideStack.Screen name='StatusView' component={StatusView} />
Expand Down
10 changes: 7 additions & 3 deletions app/views/E2EEnterYourPasswordView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const styles = StyleSheet.create({
info: {
fontSize: 16,
lineHeight: 24,
marginVertical: 4,
marginTop: 24,
...sharedStyles.textRegular
}
});
Expand Down Expand Up @@ -82,10 +82,14 @@ const E2EEnterYourPasswordView = (): React.ReactElement => {
contentContainerStyle={sharedStyles.container}
keyboardVerticalOffset={128}>
<StatusBar />
<ScrollView {...scrollPersistTaps} style={sharedStyles.container} contentContainerStyle={sharedStyles.containerScrollView}>
<ScrollView
{...scrollPersistTaps}
style={sharedStyles.container}
contentContainerStyle={{ ...sharedStyles.containerScrollView, paddingTop: 24 }}>
<SafeAreaView style={{ backgroundColor: colors.surfaceRoom }} testID='e2e-enter-your-password-view'>
<FormTextInput
placeholder={I18n.t('Password')}
containerStyle={{ marginBottom: 36 }}
label={I18n.t('Password')}
returnKeyType='send'
secureTextEntry
onSubmitEditing={submit}
Expand Down

0 comments on commit bd56113

Please sign in to comment.