Skip to content

docs(rtl): clarify subtree layout mirroring and LocaleProvider scope - #5244

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

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

Conversation

@Priyanshu0007

@Priyanshu0007 Priyanshu0007 commented Nov 19, 2026 •

Copy link
Copy Markdown

Summary

Clarifies the "Overriding direction for a subtree" section in the RTL guide.

LocaleProvider updates what Paper treats as writing direction (text alignment, directional icons), but does not alter flex layout direction by itself. This PR documents how to mirror subtree layout across platforms:

  • Web: Wrap subtree in View with dir="rtl"
  • iOS: Wrap subtree in View with style={{ direction: 'rtl' }}
  • Android: Note that React Native does not support mixed-direction subtrees

Fixes #5243

Test plan

  1. Read docs/6.x/docs/guides/rtl.md.
  2. Verify formatting and code snippet clarity.

Screenshots

Before After
before after

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.

RTL guide: LocaleProvider on a subtree doesn't mirror its layout

1 participant