diff --git a/native/chat/swipeable-message.react.js b/native/chat/swipeable-message.react.js --- a/native/chat/swipeable-message.react.js +++ b/native/chat/swipeable-message.react.js @@ -26,6 +26,9 @@ const primaryThreshold = 40; const secondaryThreshold = 120; +const panGestureHandlerActiveOffsetX = [-4, 4]; +const panGestureHandlerFailOffsetY = [-5, 5]; + function dividePastDistance(value, distance, factor) { 'worklet'; const absValue = Math.abs(value); @@ -239,6 +242,11 @@ const { contentStyle, children } = props; + const panGestureHandlerStyle = React.useMemo( + () => [contentStyle, transformContentStyle], + [contentStyle, transformContentStyle], + ); + if (!triggerReply && !triggerSidebar) { return ( @@ -305,15 +313,13 @@ snakes.push( - - {children} - + {children} , );