chore: this doesn't need to be a scrollview

This commit is contained in:
Adrian Castro
2024-03-10 10:52:09 +01:00
parent 95189818dd
commit b3e8c7b6b4

View File

@@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { ScrollView, View } from "react-native"; import { View } from "react-native";
import { import {
bookmarks, bookmarks,
@@ -19,20 +19,11 @@ export default function HomeScreen() {
</View> </View>
} }
> >
<ScrollView <ItemListSection title="Bookmarks" items={bookmarks.concat(watching)} />
scrollEnabled={ <ItemListSection
bookmarks.length > 0 || watching.length > 0 ? true : false title="Continue Watching"
} items={watching.concat(bookmarks)}
> />
<ItemListSection
title="Bookmarks"
items={bookmarks.concat(watching)}
/>
<ItemListSection
title="Continue Watching"
items={watching.concat(bookmarks)}
/>
</ScrollView>
</ScreenLayout> </ScreenLayout>
</View> </View>
); );