Fix button falling of homescreen
This commit is contained in:
parent
b46c89a63b
commit
ab2602165d
7
Home.tsx
7
Home.tsx
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user