From b6b9b989c7a0ef967138206bd5c5a2b2681fe8b1 Mon Sep 17 00:00:00 2001 From: KeviNmp4 Date: Tue, 14 May 2024 22:11:23 +0200 Subject: [PATCH] Edited: restyled beer get; Added: flashlist package --- frontend/app/(app)/(tabs)/beer/index.js | 57 +++++++++++++++++-------- frontend/package-lock.json | 39 +++++++++++++++++ frontend/package.json | 3 +- 3 files changed, 81 insertions(+), 18 deletions(-) diff --git a/frontend/app/(app)/(tabs)/beer/index.js b/frontend/app/(app)/(tabs)/beer/index.js index 06399c8..4175ad3 100644 --- a/frontend/app/(app)/(tabs)/beer/index.js +++ b/frontend/app/(app)/(tabs)/beer/index.js @@ -1,9 +1,16 @@ -import { StyleSheet, View, FlatList } from "react-native"; +import { + StyleSheet, + View, + FlatList, + Dimensions, + StatusBar, +} from "react-native"; import Text from "@components/Text"; import Button from "@components/Button"; import { colors } from "@components/style"; import { router } from "expo-router"; import { useEffect, useState } from "react"; +import { FlashList } from "@shopify/flash-list"; export default function Tab() { const [data, setData] = useState([]); @@ -28,26 +35,42 @@ export default function Tab() { return (