Skip to content

Commit e3b3997

Browse files
committed
fix: rngh animated pressable animated styles issue
1 parent e157fd9 commit e3b3997

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

package/src/components/UIComponents/SwipableWrapper.tsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { useStableCallback } from '../../hooks';
2020

2121
const ACTION_WIDTH = 80;
2222
const MAX_RIGHT_ACTIONS_WIDTH = 240;
23-
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
2423

2524
const animationOptions = {
2625
damping: 24,
@@ -107,17 +106,15 @@ export const RightActions = ({
107106
{actionItems.map((item) => {
108107
const Content = item.Content;
109108
return (
110-
<AnimatedPressable
111-
key={item.id}
112-
onPress={item.action}
113-
style={[styles.action, animatedActionWidthStyle]}
114-
>
115-
<View style={item.contentContainerStyle}>
116-
<Animated.View style={animatedIconScaleStyle}>
117-
<Content />
118-
</Animated.View>
119-
</View>
120-
</AnimatedPressable>
109+
<Animated.View key={item.id} style={[styles.action, animatedActionWidthStyle]}>
110+
<Pressable onPress={item.action} style={StyleSheet.absoluteFill}>
111+
<View style={item.contentContainerStyle}>
112+
<Animated.View style={animatedIconScaleStyle}>
113+
<Content />
114+
</Animated.View>
115+
</View>
116+
</Pressable>
117+
</Animated.View>
121118
);
122119
})}
123120
</Animated.View>

0 commit comments

Comments
 (0)