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

Adding RTL support #78

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Bilal-Abdeen
Copy link

All my suggested changes are designated by comments. Please, feel free to accept these changes as they are or modify them in any way you like. Moreover, please feel free to remove all my comments.

These changes should fix the issues: #76 and #77.

All my suggested changes are designated by comments. Please, feel free to accept these changes as they are or modify them in any way you like. Moreover, please feel free to remove all my comments.
@Bilal-Abdeen
Copy link
Author

Bilal-Abdeen commented Jun 14, 2024

You will also need to add the rtl properties to the readme file.

import { I18nManager } from "react-native";

const deviceRTL = localesList[0]?.isRTL;

// ....
<IntlPhoneInput
	onChangeText={ (value) => {
		console.log("onChangeText - value:", value, );
	}}
	defaultCountry="TR"
	appRTL={I18nManager.isRTL}
	deviceRTL={deviceRTL}
/>

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

Successfully merging this pull request may close these issues.

1 participant