This commit is contained in:
Developer
2026-03-14 18:25:13 +08:00
parent fb819798b1
commit ff659dcef7
13 changed files with 516 additions and 314 deletions

View File

@@ -20,7 +20,7 @@ interface Props {
onPress: () => void;
}
export function VideoCard({ item, onPress }: Props) {
export const VideoCard = React.memo(function VideoCard({ item, onPress }: Props) {
return (
<TouchableOpacity
style={styles.card}
@@ -55,7 +55,7 @@ export function VideoCard({ item, onPress }: Props) {
</View>
</TouchableOpacity>
);
}
});
const styles = StyleSheet.create({
card: {