-
-
Notifications
You must be signed in to change notification settings - Fork 341
Cant swipe #796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @huybui21! I'm here to help you with any bugs or questions you have while waiting for a human maintainer. I'm Dosu, a bot that can assist you with solving issues, answering questions, and becoming a contributor. I found a similar open issue where users experienced problems with swiping in <Carousel
{...}
onConfigurePanGesture={gestureChain => (
gestureChain.activeOffsetX([-10, 10])
)}
/> This configuration might help resolve the swiping issue [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
thank you i fixed this error my bad |
I would like to know your solution... |
you should use GestureHandlerRootView from 'react-native-gesture-handler', it works for me, you put your screen in it |
If the previous solution didn't work for you, try checking the following:
If none of these steps resolve the issue, consider providing more details about your setup or any error messages you might be encountering for further assistance. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
I am using react-native-reanimated-carousel ^3.5.1. Currently I can't swipe left or right and no errors occur. I tried wrapping the but still errors
My code:
<GestureHandlerRootView style={{ flex: 1 }}> <Carousel loop={true} width={width * 1} height={height / 4.3} autoPlay={false} data={images} renderItem={({ item }) => ( <Pressable style={{ flex: 1, paddingHorizontal: 15, zIndex: 999, backgroundColor: 'transparent' }} onPress={() => navigation.navigate('Banner')} > <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center', position: 'relative', }} > <Image source={item} style={{ width: '100%', flex: 1, resizeMode: 'cover', borderRadius: 8, }} /> </View> </Pressable> )} /> </GestureHandlerRootView>
The text was updated successfully, but these errors were encountered: