meliorence / react-native-snap-carousel

Swiper/carousel component for React Native featuring previews, multiple layouts, parallax images, performant handling of huge numbers of items, and more. Compatible with Android & iOS.
BSD 3-Clause "New" or "Revised" License
10.37k stars 2.29k forks source link

Scrolling issue with Android Pixel devices on OS Android Pie. #387

Open JakeRawr opened 6 years ago

JakeRawr commented 6 years ago

Hi, All

I seems to have a problem scrolling through Carousel on Android Pixel devices with OS Android Pie. Android Pixel Device with OS before Android Pie (OS 8 or below) runs carousel smoothly. Has anyone encounter this problem?

If the carousel runs fine your Android Pixel devices with OS Android Pie. Please help me and reply to say your carousel runs fine on Android Pixel devices with OS Android Pie, so I can look else where for potential bug.

Thanks for reading.

Is this a bug report, a feature request, or a question?

This is a potential bug report

Have you followed the required steps before opening a bug report?

(Check the step you've followed - replace the space character between the square brackets ([]) by an x.)

Have you made sure that it wasn't a React Native bug?

This could very well be React Native bug, But I searched and there's no relevant questions or bug report about this

Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?

Android Pixel devices with Android Pie (aka Android P or Android 9) only

Is the bug reproductible in a production environment (not a debug one)?

Yes

Environment

Environment: React native: 0.55.4 react-native-snap-carousel: 3.7.0

Target Platform: Android (9.0)

Expected Behavior

Scrolling through carousel should have a smooth scrolling.

Actual Behavior

When scrolling through carousel, carousel lags heavily. It is basically un-scrollable

Reproducible Demo

(Paste the link to a Snack example in which the issue can be reproduced. Please follow the guidelines for providing a Minimal, Complete, and Verifiable example.)

Steps to Reproduce

(Write your steps so that anyone can reproduce the issue in the Snack demo you provided.)

  1. Run carousel on a Android Pix device with Android Pie
  2. Scroll through the carousel
bd-arc commented 6 years ago

Hi @JakeRawr,

We didn't have a chance to try the carousel on Android Pie yet. Still, I'm curious about what other users have experienced so far.

simonedavico commented 6 years ago

Is this reproducible on a virtual device (emulator)?

nromptea42 commented 6 years ago

Hi, I have a pixel 2 XL on Android 9 and I don't see any lags when i'm scrolling the carousel on my app in production. But on virtual device, every animation is really laggy.

bd-arc commented 6 years ago

@nromptea42 Have you read this?

nromptea42 commented 6 years ago

Oh yeah yeah don't worry, I know that the debug mode makes it laggy. It's just that the author of the post asked if someone were having the same issue so I just replied. Sorry if it sounded like a bug report.

bd-arc commented 6 years ago

@nromptea42 No problem; just wanted to provide insight in case you didn't have a chance to read it ;-)

dohooo commented 3 years ago

Sorry, please allow me to advertise for my open source library! ~ I think this library react-native-reanimated-carousel will solve your problem. It is a high performance and very simple component, complete with React-Native reanimated 2