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