mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-07 23:18:38 +08:00
fix: add unmount cancellation guard, simplify keyExtractor, update spec
This commit is contained in:
@@ -99,10 +99,10 @@ export default function HomeScreen() {
|
||||
<Animated.FlatList
|
||||
style={styles.listContainer}
|
||||
data={rows}
|
||||
keyExtractor={(row: any, index) =>
|
||||
keyExtractor={(row: any) =>
|
||||
row.type === 'big'
|
||||
? `big-${row.item.bvid}`
|
||||
: `pair-${row.left.bvid}-${row.right?.bvid ?? 'empty'}-${index}`
|
||||
: `pair-${row.left.bvid}-${row.right?.bvid ?? 'empty'}`
|
||||
}
|
||||
contentContainerStyle={{
|
||||
paddingTop: insets.top + NAV_H + 6,
|
||||
|
||||
Reference in New Issue
Block a user