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

rtl support #26

Open
jeffelector opened this issue Sep 5, 2019 · 3 comments
Open

rtl support #26

jeffelector opened this issue Sep 5, 2019 · 3 comments

Comments

@jeffelector
Copy link

The library does not seems to be supporting rtl :
WhatsApp Image 2019-09-05 at 10 15 11

the red dot is not inside the component.

@aminebenkeroum
Copy link
Owner

I would work on that too! Thank you for reporting it.

@AnasAlsaadi
Copy link

AnasAlsaadi commented Apr 15, 2020

hello,

you can do that by change file ToggleSwitch.js at line 93

remove this ==> margin: 4,

add this ==> margin: I18nManager.isRTL ? 24 : 4,

that is work for me !

@bureyburey
Copy link

you should also account for the different sizes (small, medium, large)

for small => margin: 22
for medium (default) => margin: 24
for large => margin: 36

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

4 participants