-
Notifications
You must be signed in to change notification settings - Fork 330
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
no RTL support :( #26
Comments
I'm afraid I don't have any experience with RTL layouts. How do you normally do it? I would think setting the |
It's more complicated than that ;) I18nManager.forceRTL(true); which messes up the page dots, swipes etc. _getRTLPageOffset(pageNum){ It seems to work fine now... |
Thanks for the explanation! I have a few clarifying questions if that's okay (I have no experience with RTL myself):
I hope to add support soon. |
Thanks for the effort! Should the sliders move in the opposite direction? I.e. right -> left instead of left -> right
I hope to add support soon. - THANKS!! |
Got it, thanks! I will hopefully find the time to look into this this week or the next 👍 |
Hi Jacse, |
Hi @Jacse, Thanks, |
@EyalSi Thanks for your solution, it works perfectly :) |
@EyalSi Oh wait! It makes the same bug on |
@EyalSi do you think you'd have time to submit a PR with your changes? I'm a bit swarmed atm and it would be highly appreciated. |
@EyalSi thank you very much for sharing your fix. worked like a charm for me! |
Hi, I opened a PR for RTL support :) *** EDIT *** |
Experimental support has landed in 4849fd8. Would love if people could test it out by installing |
I think this has a bug, I had 3 pages to show on the slider and I had problems when I enabled a language that has RTL true, the problems happens on multiple scenarios when clicking next button, the previous button or when swiping slides. When clicking on next button: The slider will go through the next page which is the page with index 1, but when clicking next button at the state of current index 1 it goes all back to the previous page which is page index 0 and the done button show up. When swiping: It will go all through the right indexes, but when reaching the last index which is 2 the done button won't show up, but when swiping all back to the first index which is 0 the done button show up. When clicking on previous: It will not go to the right index. This behaviour happens on Android, haven't tested iOS. |
Try this |
Still doing the same behavior |
@yogevlahyani This is what happens When clicking the next button and previous button: And this is what happens when swiping: |
@0x01Brain Have you tried I18nManager.forceRTL(true) ? |
@yogevlahyani Thank you, sir, now it works without any problems. I had to delete node_modules as you said before installing your github version. I thought that doing the following would be enough: npm uninstall --save react-native-app-intro-slider |
Great, happy to help 👍 |
This is now landed in master 🍾 |
Is there a way to activate RTL? seems like it's not working.
The text was updated successfully, but these errors were encountered: