Skip to content

Android manual swiping is not working #817

Open
@jpmazza

Description

@jpmazza

Describe the bug
Carousel does not swipe or animate on Android. It works fine on iOS. The carousel renders and looks correct, but swipe gestures are ignored and no animation happens. This happens even in a minimal setup. I’m using the latest recommended versions.

To Reproduce

  • The root component is wrapped with GestureHandlerRootView.
  • Minimal Carousel component:
import Carousel from 'react-native-reanimated-carousel';
import {Dimensions, View, Text} from 'react-native';

const data = [0, 1, 2, 3, 4];
const width = Dimensions.get('window').width;

export default function Demo() {
  return (
    <Carousel
      width={width}
      height={width / 2}
      data={data}
      renderItem={({index}) => (
        <View style={{flex: 1, justifyContent: 'center', borderWidth: 1}}>
          <Text style={{textAlign: 'center', fontSize: 30}}>{index}</Text>
        </View>
      )}
    />
  );
}

Expected behavior
Carousel should respond to swipe gestures and scroll through items smoothly.

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

Versions (please complete the following information):

  • react: v19.0.0
  • react-native: v0.79.2
  • react-native-reanimated: v3.17.5
  • react-native-reanimated-carousel: v4.0.2
  • react-native-gesture-handler: v2.25.0

Smartphone (please complete the following information):

  • Device: Pixel 8 API 35
  • OS: Android

Additional context
I verified:

  • The root is wrapped in GestureHandlerRootView.
  • I've tried wrapping Carousel with GestureHandlerRootView.
  • Hermes is enabled, remote debugging off.
  • No console errors or warnings on Android.
  • Carousel works fine on iOS and is only broken on Android.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions