File tree Expand file tree Collapse file tree
package/src/components/UIComponents Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import { useStableCallback } from '../../hooks';
2020
2121const ACTION_WIDTH = 80 ;
2222const MAX_RIGHT_ACTIONS_WIDTH = 240 ;
23- const AnimatedPressable = Animated . createAnimatedComponent ( Pressable ) ;
2423
2524const 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 >
You can’t perform that action at this time.
0 commit comments