dohooo / react-native-reanimated-carousel

🎠 React Native swiper/carousel component, fully implemented using reanimated v2, support to iOS/Android/Web. (Swiper/Carousel)
https://react-native-reanimated-carousel.vercel.app
MIT License
2.72k stars 314 forks source link

Manual swiping does not work on Android. #407

Closed Slicefresh22 closed 1 year ago

Slicefresh22 commented 1 year ago

Describe the bug Swiping between intervals doesn't seem to working on android but it working on IOS. I am using this library inside this react-native-modal library.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior I expect the library to work across platforms (IOS, Android)

Screenshots If applicable, add screenshots to help explain your problem.

Versions (please complete the following information): "expo": "^48.0.0", "expo-clipboard": "~4.1.2", "expo-constants": "~14.2.1", "expo-device": "~5.2.1", "expo-font": "~11.1.1", "expo-haptics": "~12.2.1", "expo-linking": "~4.0.1", "expo-notifications": "~0.18.1", "expo-secure-store": "~12.1.1", "expo-status-bar": "~1.4.4", "expo-updates": "~0.16.4", "lodash": "^4.17.21", "moment-timezone": "^0.5.41", "prop-types": "^15.8.1", "pusher-js": "7.4.0", "react": "18.2.0", "react-native": "0.71.6", "react-native-bouncy-checkbox": "^3.0.6", "react-native-confetti": "^0.1.0", "react-native-confirmation-code-field": "^7.3.1", "react-native-controlled-mentions": "^2.2.5", "react-native-dotenv": "^3.4.7", "react-native-gesture-handler": "~2.9.0", "react-native-gifted-chat": "2.0.0", "react-native-global-props": "^1.1.5", "react-native-image-viewing": "^0.2.2", "react-native-mask-input": "^1.2.2", "react-native-modal": "^13.0.1", "react-native-paper": "^4.12.5", "react-native-popover-view": "^5.1.7", "react-native-popup-confirm-toast": "^2.2.4", "react-native-reanimated": "~2.14.4", "react-native-reanimated-carousel": "^3.3.2", "react-native-safe-area-context": "4.5.0", "react-native-screens": "~3.20.0",

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

orineeman commented 1 year ago

Is there a solution to this?

renatomserra commented 1 year ago

also facing an issue where the carousel inside an action sheet (https://github.com/ammarahm-ed/react-native-actions-sheet) doesnt swipe on android but does on iOS

GeuntaBuwono commented 1 year ago

I've been tried with example on repo, and face the same issue. with latest and v2.6.0

@dohooo it's expected ? or I need add some config ?

EDIT

there is can be solve with gestureHandlerRootHOC

import { gestureHandlerRootHOC } from 'react-native-gesture-handler';

export default gestureHandlerRootHOC(YourScreenScreen);

https://docs.swmansion.com/react-native-gesture-handler/docs/1.10.3/#usage-with-modals-on-android