fix scrollview so it ends above the navigation bar
This commit is contained in:
parent
8865fcea7c
commit
38dad472f6
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue