feat: make wallpaper grid seamless

This commit is contained in:
2024-10-01 17:38:55 +01:00
parent 55be04f3dd
commit 299c7a2036

View File

@@ -63,8 +63,7 @@ export default function HomeScreen() {
</Text> </Text>
)} )}
renderItem={({ item }) => ( renderItem={({ item }) => (
<View className="w-full p-2"> <View className="w-full relative overflow-hidden">
<View className="w-full relative rounded overflow-hidden">
<TouchableOpacity <TouchableOpacity
onPress={() => { onPress={() => {
setSelectedWallpaper(item); setSelectedWallpaper(item);
@@ -76,17 +75,6 @@ export default function HomeScreen() {
source={{ uri: item.thumbnail_url }} source={{ uri: item.thumbnail_url }}
/> />
</TouchableOpacity> </TouchableOpacity>
<View
className="w-full absolute bottom-0 left-0 right-0 p-2"
style={{
backgroundColor: "rgba(0, 0, 0, 0.8)",
}}
>
<Text className="text-white opacity-80">
{item.display_name}
</Text>
</View>
</View>
</View> </View>
)} )}
estimatedItemSize={200} estimatedItemSize={200}