Fix button falling of homescreen

This commit is contained in:
Brandon Presley 2022-07-07 19:50:38 +12:00
parent b46c89a63b
commit ab2602165d
1 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ import {
SafeAreaView,
StyleSheet,
Text,
View,
} from 'react-native';
import {AnimatedFAB, List, Searchbar} from 'react-native-paper';
import {DatabaseContext} from './App';
@ -94,7 +95,7 @@ export default function Home() {
};
return (
<SafeAreaView style={styles.container}>
<View style={styles.container}>
<Searchbar placeholder="Search" value={search} onChangeText={setSearch} />
<FlatList
data={sets}
@ -116,13 +117,13 @@ export default function Home() {
extended={false}
label="Add"
icon="add"
style={{position: 'absolute', right: 20, bottom: 20}}
style={{position: 'absolute', right: 20, bottom: 70}}
onPress={() => {
setEdit(undefined);
setShow(true);
}}
/>
</SafeAreaView>
</View>
);
}