Skip to content

docs(rtl): show how to mirror a subtree's layout on Android and iOS - #5313

Open
Priyanshu0007 wants to merge 1 commit into
callstack:mainfrom
Priyanshu0007:docs/rtl-native-subtree-direction
Open

Priyanshu0007 wants to merge 1 commit into
callstack:mainfrom
Priyanshu0007:docs/rtl-native-subtree-direction

Conversation

@Priyanshu0007

Copy link
Copy Markdown

Motivation

Follow-up to #5244. On Android and iOS, LocaleProvider doesn't change layout, so the guide now shows wrapping the subtree in a View with the direction style.

Related issue

#5243

Videos

Sections: no wrapper, LocaleProvider only, LocaleProvider + View direction (only this one mirrors).

iOS, LTR app, rtl subtree
https://github.com/user-attachments/assets/5c5b757d-310e-4acc-9784-354fb740ba46

iOS, RTL app, ltr subtree
https://github.com/user-attachments/assets/9f8129f1-333c-40af-95c0-bfd6b75ad5fc

Android, LTR app, rtl subtree
https://github.com/user-attachments/assets/158f8f79-50d9-4b62-b084-3791238ff011

Android, RTL app, ltr subtree
https://github.com/user-attachments/assets/5d8cf601-6007-410e-bfe5-6658cd4a2045

Test plan

On iOS and Android, wrap content in <LocaleProvider direction="rtl"><View style={{ direction: 'rtl' }}>: it lays out right to left in an LTR app. ltr does the reverse in an RTL app.

This branch has not been deployed

No deployments
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