Skip to content

Commit

Permalink
fix: listview error, only use flatlist
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-wasmeier-titanom committed May 24, 2024
1 parent 2b49d65 commit 042f469
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions frontend/src/screens/assignments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,7 @@ export function AssigmentsScreen() {

return (
<SafeAreaView className="text-black flex-1 bg-slate-700">
<ScrollView
refreshControl={
<RefreshControl
refreshing={refreshing}
onRefresh={refreshAssignments}
/>
}
className="p-4 w-full"
style={{ gap: 20 }}
>
<View className="p-4 w-full" style={{ gap: 20 }}>
<View>
<Text className="text-white" style={{ fontSize: 16 }}>
From user
Expand All @@ -139,6 +130,12 @@ export function AssigmentsScreen() {
</View>
<StatusBar style="auto" />
<FlatList
refreshControl={
<RefreshControl
refreshing={refreshing}
onRefresh={refreshAssignments}
/>
}
contentContainerStyle={{ gap: 12 }}
data={filteredAssignments}
renderItem={({ item }) => (
Expand All @@ -160,7 +157,7 @@ export function AssigmentsScreen() {
/>
)}
/>
</ScrollView>
</View>
</SafeAreaView>
);
}

0 comments on commit 042f469

Please sign in to comment.