-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Cannot scroll smoothly on a page with a lot images (Android 9.0 only, fine for 8.x, 7.x) #22744
Comments
Is there any workaround for this issue? |
@alexandrius I do not have any work around. Are you experiencing the same issue? Can you click on the thumb up to upvote this issue? |
@gsunsnackv Yes fling stops working if it looses focus (navigating to another page and back) |
I experience the same issue using Flatlist on a physical device running Android 9.0. No problems with android 8 and below. I cannot scroll once and see multiple items go up, it's just scroll and stop at the item. |
@vforvasile Exactly me too. I have PixelExperience installed on my phone |
This only seems to happen (at least for me) if the images are loaded from remote. With local images everything works fine. |
Uhm I'm not sure, he mentions ScrollView which has a different and less performant approach from FlatList. That said, my comment there may help. |
@kelset The same happens with FlatList. I read through your comments, and non of them help as this is related to Android 9 only, other versions of Android are unaffected and work smoothly with the example provided. |
@vforvasile what phone do you have. I think we are describing a different problem. I will open another issue with recorded video |
@vforvasile #22925 I opened the issue we are experiencing |
@kelset , I tried to use FlatList and it does not work. https://github.com/gsunsnackv/android-9.0-react-native-scroll-bug/tree/flatlist . It still brings down the fps to < 5 on Android 9.0 but never below 40 on Android 8.0 |
Also interesting: If you repeat the same picture 100x it doesn't lag. It has to be 100 different pictures. |
@danilobuerger Thank you! I forgot to mention that in the original post. It seems to be something related to memory management |
HELP! This bug is killing us. Can someone save us? |
I gave up using FlatList. I instead use this library. |
Update: It seems that adding https://github.com/kmagiera/react-native-gesture-handler helps. So maybe the bug is in the area where react-native handles gesture . Code: https://github.com/gsunsnackv/android-9.0-react-native-scroll-bug/tree/gesture |
Thank you @genogeno . I'll try |
Using react-native-gesture-handler in combination with FlatList does not solve the problem for me. |
continuous concern |
@smeekmeister thanks! we tried this in our app and helped on Android 9. |
I tried it on Android 9 with v0.57.0 of react-native, and it works, the FlatList could scroll normally but seems slower when pagingEnabled is set than on OS versions <9 . |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
still a problem |
@smeekmeister thanks! it works on Android 9. |
Same issue on Android 9, react-native 0.60.5 |
Still, have the same issue on 0.61.2 |
same issue on 0.61.4 |
this work for me thank you , you saved my day
|
Same issue, - -. |
So what can i do... My app use react-navigation, it can open multiple pages and every page has the image item list. |
Maybe react-native-screens is a solution with react-navigation and big list(with removeClippedSubviews prop). |
Is there any way to fix this problem? Please show me.... :(( "removeClippedSubviews.It did not help me" |
Worked for me! |
Having many images into scrollview really causes to lag. I have android 8. |
I use FastImage to fix this problem image inside scrollview. but it too lag on RecyclerListView. use Image on RecyclerListView is better. i need more solution better |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Did anyone manage to fix this issue? I face this issue too on Android 10 AOSP ROM. (react-native version 0.63.4) |
Same problem I fixed by adding |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Environment
Run
react-native info
in your terminal and paste its contents here.React Native Environment Info:
System:
OS: macOS 10.14.2
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 223.26 MB / 16.00 GB
Shell: 4.4.23 - /usr/local/bin/bash
Binaries:
Node: 11.5.0 - /usr/local/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.npm-packages/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 27, 28
Build Tools: 27.0.3, 28.0.3
System Images: android-24 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.3 => 16.6.3
react-native: 0.57.8 => 0.57.8
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
Description
Describe your issue in detail. Include screenshots if needed. If this is a regression, let us know.
A simple page that has a ScrollView with 100 Image in it cannot scroll smoothly on emulator or device with Android 9.0 . It can scroll smoothly on Android 8.x or 7.x
Reproducible Demo
Reproduce project
https://github.com/gsunsnackv/android-9.0-react-native-scroll-bug/tree/master
You should also be able to reproduce using the following simple steps:
react-native init AwesomeProject
react-native run-android
=== New information 2019-01-09 ===
FlatList does not work either. Here is the same project above changing ScrollView to FlatList
https://github.com/gsunsnackv/android-9.0-react-native-scroll-bug/tree/flatlist
The text was updated successfully, but these errors were encountered: