-
-
Notifications
You must be signed in to change notification settings - Fork 42
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 Support #35
Comments
Hi @diaazzawi Thanks for using this library. Could you share the video about the bug? I can't imagine it 😭 Thanks |
Thank you so much @dev-yakuza for your prompt response. Here is what I'm experiencing when my simulator's language is Arabic or any other RTL-language: Thanks |
Thanks for sharing the video. |
Yes it works perfectly in other LTR-languages. Just throwing an idea: It would be AWESOME if you add one more prop (say rtl as boolean) that I can pass to the component and based on its value you'll need to flip the x-coordinate of the last image position. In the meanwhile, it will be great if you have any temporary workaround. Thanks! |
Thanks for your investigation and idea. |
Just found where you need to make the necessary changes: Assuming you add a new boolean prop (isRTL) to your component, the _setOrigin function (lines 69-91) in src\index.tsx file should change to:
🎉 🎉 🎉 🥳 🥳 🥳 I tested the app with the above change in both LTR- and RTL-languages and it PERFECTLY works as expected 🥳 🥳 🥳 🎉 🎉 🎉 Please update your library with this change ASAP so I can get it in my project. Thank you again for this AWESOME lib. |
Thanks so much to implement it. Thanks |
FYI, I just created the above PR. |
Thanks for your contribution 🙇♂️ |
Wonderful. Million thanks to you! |
This is a very nice library but, unfortunately, it has a bug in right-to-left (RTL) devices. This is my scenario:
I would really love to have a solution for this issue as soon as possible. Any quick workaround is also appreciated.
Thanks for this great library!
The text was updated successfully, but these errors were encountered: