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

In RTL mode, phone input element should display LTR #68

Open
Bilal-Abdeen opened this issue Mar 6, 2024 · 1 comment · May be fixed by #69
Open

In RTL mode, phone input element should display LTR #68

Bilal-Abdeen opened this issue Mar 6, 2024 · 1 comment · May be fixed by #69
Labels
enhancement New feature or request

Comments

@Bilal-Abdeen
Copy link

Bilal-Abdeen commented Mar 6, 2024

Thank you very much for the excellent library!

Phone numbers (like any number) should be written LTR (Left-to-Right) regardless of the language.

In the component of this library, in RTL (Right-to-Left) mode, the country code (and flag) are displayed on the right side and the phone number on the left side of the screen. This is caused by the auto swapping of components done by the React-Native RTL support. I suggest adding a prop to reverse the auto swapping.

phone_input

@Bilal-Abdeen Bilal-Abdeen linked a pull request Mar 6, 2024 that will close this issue
@AstrOOnauta AstrOOnauta added the enhancement New feature or request label Mar 19, 2024
@PPHelios
Copy link

I have same issue, using textInput solves the reversed numbers but for me in rtl the input is on the left and country selector is on the right, is there a way to force the component to keep ltr layout?

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

Successfully merging a pull request may close this issue.

3 participants