Skip to content
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

Horizontal scrolling is not working properly while RTL is enabled #502

Open
mm7mod opened this issue May 25, 2020 · 4 comments
Open

Horizontal scrolling is not working properly while RTL is enabled #502

mm7mod opened this issue May 25, 2020 · 4 comments

Comments

@mm7mod
Copy link

mm7mod commented May 25, 2020

Hello,

I have enabled isHorizontal for one of the components in my APP and it works fine when the APP direction is LTR however when the APP is RTL the horizontal scroll on the RLV is not scrolling and once I scroll horizontally the items disappear.

Reproducing this issue :
1-enabling isHorizontal on this sample code
https://github.com/Flipkart/recyclerlistview/tree/master/docs/guides/samplecode

2-setting the app direction to RTL "I18nManager.forceRTL(false);"

before and after scrolling
1

2


how to solve this issue ?

is there a workaround to force the RLV to be rendered from left to right even when RTL is enabled to avoid this ?

@mm7mod
Copy link
Author

mm7mod commented May 25, 2020

Environment :

"react": "16.11.0",
"react-native": "0.62.2",
"recyclerlistview": "^3.0.0"

I am testing on a real android phone not sure if IOS also we will be facing the same issue

thank you for the great tool

@mm7mod
Copy link
Author

mm7mod commented Jun 11, 2020

any help on this issue would be really awesome as I want to use this feature xD

@dagan-arbox
Copy link

It seems to be react native bug.

@peacechen
Copy link

This issue has been reported in RTL apps and looks like it may be a bug in RecyclerListView instead of React Native. Here is a minimal repro:
https://github.com/anastely/TestRNCS.git

When the app first renders on today's date, the list is empty. Scroll back about 8 months (as of this writing, that would be November) and some calendar days appear. Scroll back & forth around those dates and notice that the row recycling happens on the wrong side -- e.g. when scrolling right, they disappear off the left side, which is opposite what happens in a LTR app. This looks like RecyclerListView not accounting for RTL.

@naqvitalha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants