-
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
RTL apps with a horizontal scrollView #11960
Comments
Same here, Horizontal ScrollView doesn't work properly in RTL Layout (on both iOS and Android) ReproductionUse RTLExample page in UIExplorer to apply RTL layout and then use horizontal ScrollView in Additional Information
|
Anyone can help/contribute? It's a bug and it breaks my app and a lot of good components like Example:This is my code: <ScrollView horizontal>
<View style={{ width: 150, height: 100, backgroundColor: '#12a19e' }}><Text>1</Text></View>
<View style={{ width: 150, height: 100, backgroundColor: '#f45b21' }}><Text>2</Text></View>
<View style={{ width: 150, height: 100, backgroundColor: '#640fe7' }}><Text>3</Text></View>
<View style={{ width: 150, height: 100, backgroundColor: '#8f5e3e' }}><Text>4</Text></View>
<View style={{ width: 150, height: 100, backgroundColor: '#f4bd15' }}><Text>5</Text></View>
<View style={{ width: 150, height: 100, backgroundColor: '#137cf9' }}><Text>6</Text></View>
</ScrollView> Preview:React Native version: 0.41.1 Related issues:#13100 |
Temporary fix: <ScrollView
horizontal
style={{ flexDirection: I18nManager.isRTL ? 'row-reverse' : 'row' }}
>
...
</ScrollView> In RTL layout you should use |
I tested this again on v0.43.2 and the iOS ScrollView works as expected, but the Android ScrollView still has this issue |
This is a deal breaker, someone is on it? |
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally! If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution. |
Hey, this is still a problem, guys. :( |
tried updating rn up to 49 still horizontal flatlist on rtl does not function |
It seems that it's fixed on v0.51.0 (this commit) |
I won't be reopening this issue as it does not contain sufficient information as required by the template. You may open a new one. |
In the
info.plist
, I changed theLocalization native development region
to 'fa' so my app direction isRTL
.ScrollView horizontal does not work fine.
I can't see the scroll indicator and can't scrolling.
If I change the
Localization native development region
toLTR
languages, the scrollview works fine.Is there anyway to solve this problem?
The text was updated successfully, but these errors were encountered: