software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
6.13k stars 982 forks source link

docs: Update reanimated_swipeable.md #3054

Closed bryanltobing closed 3 months ago

bryanltobing commented 3 months ago

Description

Fix incorrect import

Test plan

try to import Swipeable from import Swipeable from "react-native-gesture-handler/Swipeable";

m-bert commented 3 months ago

Hi! I'm not sure why you try to change import for ReanimatedSwipeable component to legacy Swipeable. Have we missed something?

latekvo commented 3 months ago

Hey,

the file you've edited correctly refers to the ReanimatedSwipeable component, thus the import is correct.

Are you sure you have used >=2.18.0 version of Gesture Handler? That's when this component was added, which may be the reason why you weren't able to import it.

bryanltobing commented 2 months ago

hi. Thank you for the response. i thought i was in the latest version. turns out the new expo template is still in v2.16.1.

my bad for not checking.