Add empty message to Exercises and add flexGrow

This commit is contained in:
Brandon Presley 2022-07-07 17:19:31 +12:00
parent 119711a13a
commit 503b3052e0
1 changed files with 7 additions and 1 deletions

View File

@ -38,7 +38,12 @@ export default function Exercises() {
<View style={styles.container}>
<Searchbar placeholder="Search" value={search} onChangeText={setSearch} />
<FlatList
style={{height: '90%'}}
ListEmptyComponent={
<List.Item
title="No exercises yet"
description="Once sets have been added, Exercises list your personal bests."
/>
}
refreshing={refreshing}
onRefresh={async () => {
setRefresing(true);
@ -55,5 +60,6 @@ export default function Exercises() {
const styles = StyleSheet.create({
container: {
padding: 10,
flexGrow: 1,
},
});