Skip to content

Adding RTL support#78

Open
Bilal-Abdeen wants to merge 3 commits into
MuhammedAlmaz:masterfrom
Bilal-Abdeen:patch-1
Open

Adding RTL support#78
Bilal-Abdeen wants to merge 3 commits into
MuhammedAlmaz:masterfrom
Bilal-Abdeen:patch-1

Conversation

@Bilal-Abdeen
Copy link
Copy Markdown

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
Copy Markdown
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