diff --git a/native/chat/swipeable-thread.react.js b/native/chat/swipeable-thread.react.js --- a/native/chat/swipeable-thread.react.js +++ b/native/chat/swipeable-thread.react.js @@ -79,16 +79,20 @@ iconSize, ]); - return ( - - {props.children} - + const swipeableThread = React.useMemo( + () => ( + + {props.children} + + ), + [onSwipeableRightWillOpen, props.children, swipeableActions], ); + return swipeableThread; } export default SwipeableThread;