-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
Description
I use the new Reanimated version of the Swipeable component. When I call close()
on the ref, a warning is shown:
Steps to reproduce
const swipeableRef = useRef<SwipeableMethods>(null);
const renderRightActions = () => {
return (
<IconButton
onPress={() => {
swipeableRef.current?.close();
onPress();
}}
/>
);
};
return <Swipeable
ref={swipeableRef}
renderRightActions={renderRightActions}
/>
Snack or a link to a repository
See Steps to reproduce
Gesture Handler version
2.18.1
React Native version
0.73.9
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Real device
Device model
No response
Acknowledgements
Yes