-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
about ScrollView on ios 13 . scroll bar will be center sometimes for ios 13 and can move to phone left #26610
Comments
Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety? 👉 Click here if you want to take another look at the Bug Report issue template. |
System: |
Same issue here |
Hey, I have the same issue with |
Same issue here |
I'm actually experiencing this with |
I don't know if this happened with anyone else or is that related but incase anyone experienced it: I saw my custom contact list for a second and then it changed to something like this with the scroll bar in the middle and then the thing disappeared. |
This appears to have something to do with SafeAreaView's Changing Possibly related: #16997 |
We can reproduce this on 59.10 on a ScrollView with We're not sure why but removing the prop, or navigating to another page and back fix the scroll indicator somehow. |
Updates:
|
I'm not sure about the |
Same issue here. It's not possible to reproduce with 100% success, but so far we noticed this on iPhone Xs running iOS 13.0 and 13.1 on |
Same issue here |
Same issue here with ios 13.1.3 "react": "16.3.1", "react-native": "0.55.3", |
Same happened to me, but the issue was with ScrollView. Removed the as we used FlatList and the problem was gone. |
Same issue here with ios 13, react 16.9.0, react-native 0.61.2 |
I initially dug into this thinking it was something I did incorrectly– after stripping away SafeAreaView, using different versions of react-native, digging into react-navigation, and a million other little tests– I narrowed it down to the following:
Fiddling with SafeAreaView props and everything else didn't help– but @sbycrosz's workaround of adding |
We just ran into this issue as well. On a physical iPhone Xs (iOS 13.2.3) the issue does not appear but on the iPhone 11 Pro (iOS 13.3) using the simulator it does appear. We are updating the physical iPhone at the moment to iOS 13.3 to see if we can replicate the issue. @sbycrosz's workaround fixes it but a bit annoying having to update our ScrollViews. |
I had the same issue both on an iPhone XR 13.1.3 and in the Simulator - iPhone 11 13.3. Occurred when a View component with |
I am experiencing the same issue on iOS13 iPhone Xs .How did you fix it for react-native-webview? |
Had the same problem for iPhone XR in Simulator (13.3) using |
Linking this PR here, because it fixes the issue: #29809 |
Mar 20, 2021... no fixed yet 🤘 |
The workaround suggested by @sbycrosz moves the scrollbar 1px to left. To keep original position, you can use: scrollIndicatorInsets={{right: Number.MIN_VALUE}} |
How we will add that property to Webview? |
Dunno, this issue is about ScrollView. |
add style <View style={{ flexGrow: 1 }}>
<FlatList />
</View> |
|
It looks like this issue happens when the ScrollView (and probably other scrollable components too) is mounted in a screen while the navigation animation is running. For example when rendering the ScrollView only after receiving data from an API. The position of the scroll bar seems to be set depending on where the ScrollView is on the screen when it's mounted / rendered. Here is a repro that simulates waiting for data with a @danilo900 Updating |
So my fix for now will be to change the default value for
|
this working for me |
Apply [suggested bug fix](facebook/react-native#26610 (comment)) for scrollbars sometime rendering off-centered
This error occurred in our app when data was loaded while the react navigation screen transition was still underway, causing the screen to re-render and introduce a These solutions all fixed the problem:
We went with the 4th solution. |
In my case adding
to FlatList or ScrollView helped. https://reactnative.dev/docs/scrollview#automaticallyadjustsscrollindicatorinsets-ios |
This issue is still appearing, specifically in my case only when wrapped in a KeyboardAvoidingView. Configured as the following:
Can confirm @sbycrosz's solution of |
For my instance of this bug, it was caused by conditionally rendering a FlatList. My pseudo-code was:
When I re-worked this to:
The problem went away. I encourage you to try this solution before you start messing around with manually forcing the indicator insets. Everyone here seems to be recommending you to change the |
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. |
"react": "16.8.3",
"react-native": "0.59.9",
Platforms: iOS 13.0,
The text was updated successfully, but these errors were encountered: