This commit is contained in:
Developer
2026-03-06 12:58:41 +08:00
parent b09c3731f9
commit 9b7e728c9d
8 changed files with 452 additions and 33 deletions

View File

@@ -1,8 +1,9 @@
import React, { useEffect, useState } from 'react';
import {
View, FlatList, StyleSheet, SafeAreaView,
View, FlatList, StyleSheet,
Text, TouchableOpacity, ActivityIndicator, Dimensions
} from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { useRouter } from 'expo-router';
import { Ionicons } from '@expo/vector-icons';
import { VideoCard } from '../components/VideoCard';
@@ -52,7 +53,7 @@ export default function HomeScreen() {
<FlatList
data={videos}
keyExtractor={item => item.bvid}
keyExtractor={(item, index) => `${item.bvid}-${index}`}
numColumns={2}
columnWrapperStyle={styles.row}
contentContainerStyle={styles.list}