Skip to content

Commit cad9ce5

Browse files
authored
test: 修改flash-list库demo的CellRendererComponent属性的动画加载时间过长问题 (react-native-oh-library#913)
Signed-off-by: zhyx2 <[email protected]>
1 parent e9e0549 commit cad9ce5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

@shopify/flash-list/FlashListDemo4.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const CustomCellRendererComponent = React.forwardRef((props: any, _) => {
1717
Animated.delay(props.index * 50),
1818
Animated.spring(offset, {
1919
toValue: 0,
20+
useNativeDriver: true,
2021
}),
2122
]).start();
2223
}, [props.index]);

@shopify/flash-list/test/FlashListTest.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ export const FlashListTest = () => {
501501
Animated.delay(props.index * 50),
502502
Animated.spring(offset, {
503503
toValue: 0,
504+
useNativeDriver: true,
504505
}),
505506
]).start();
506507
}, [props.index]);

0 commit comments

Comments
 (0)