mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 16:33:26 +00:00
chore: this doesn't need to be a scrollview
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user