fix scrollview so it ends above the navigation bar

This commit is contained in:
moist-webDev 2023-06-10 20:51:13 -04:00
parent 8865fcea7c
commit 38dad472f6
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,7 @@ export default function OtherCat({theme, otherCategories, setOtherCategories, se
<TouchableOpacity onPress={handleAddNew}> <TouchableOpacity onPress={handleAddNew}>
<Text style={st.add}>ADD NEW CATEGORY</Text> <Text style={st.add}>ADD NEW CATEGORY</Text>
</TouchableOpacity> </TouchableOpacity>
<ScrollView> <ScrollView style={{marginBottom: 200}}>
{catSorted.map((cat:any) => { {catSorted.map((cat:any) => {
return ( return (
<Link onPress={()=>{setShowBack('categories');setSelCat(cat); setTitle(cat.title);}} to='/other' style={st.category} key={cat.id}> <Link onPress={()=>{setShowBack('categories');setSelCat(cat); setTitle(cat.title);}} to='/other' style={st.category} key={cat.id}>
@ -143,6 +143,7 @@ const style = (theme:any) => {
textAlign: 'center', textAlign: 'center',
padding: 10, padding: 10,
backgroundColor: theme.primary, backgroundColor: theme.primary,
marginBottom: 20,
}, },
category: { category: {
color: theme.text, color: theme.text,