Skip to content

Commit 80b8219

Browse files
author
杨楠
committed
fix:SwipeAction 增加key
1 parent 0e78ea5 commit 80b8219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/SwipeAction/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const SwipeAction = (props: SwipeActionProps, ref: any) => {
7676
extrapolate: 'clamp',
7777
});
7878
return (
79-
<Animated.View style={{ flex: 1, transform: [{ translateX: trans }] }}>
79+
<Animated.View key={idx} style={{ flex: 1, transform: [{ translateX: trans }] }}>
8080
<RectButton
8181
style={[styles.rightAction, { backgroundColor: color }]}
8282
onPress={() => {

0 commit comments

Comments
 (0)