diff --git a/src/screens/contacts/ContactFormScreen.tsx b/src/screens/contacts/ContactFormScreen.tsx index f900d7786..41d1e5004 100644 --- a/src/screens/contacts/ContactFormScreen.tsx +++ b/src/screens/contacts/ContactFormScreen.tsx @@ -4,7 +4,14 @@ import { RootStackScreenProps, } from 'navigation/rootNavigator/types' import { useContext, useState } from 'react' -import { StyleSheet, Text, View } from 'react-native' +import { + StyleSheet, + Text, + View, + ScrollView, + KeyboardAvoidingView, + Platform, +} from 'react-native' import { TextInput } from 'react-native-gesture-handler' import Icon from 'react-native-vector-icons/Ionicons' import { PrimaryButton } from 'src/components/button/PrimaryButton' @@ -62,62 +69,73 @@ export const ContactFormScreen = ({ } return ( - - - - navigation.navigate(contactsStackRouteNames.ContactsList) - } - backgroundColor={colors.background.primary} - color={colors.lightPurple} - style={styles.backButton} - size={15} - borderRadius={20} - /> - - {initialValue.id ? 'Edit Contact' : 'Create Contact'} - - - - name - - - {/* alias */} - address + + + + + + navigation.navigate(contactsStackRouteNames.ContactsList) + } + backgroundColor={colors.background.primary} + color={colors.lightPurple} + style={styles.backButton} + size={15} + borderRadius={20} + /> + + {initialValue.id ? 'Edit Contact' : 'Create Contact'} + + + + name + + + {/* alias */} + address + + + + + + - - - - - - + + ) } const styles = StyleSheet.create({ + screen: { + flex: 1, + backgroundColor: colors.background.darkBlue, + }, parent: { alignContent: 'space-around', height: '100%', @@ -165,8 +183,7 @@ const styles = StyleSheet.create({ marginBottom: 20, }, footer: { - flex: 2, - justifyContent: 'flex-end', + marginTop: 25, }, saveButton: { justifyContent: 'center',