Skip to content

Commit

Permalink
Separate RTL examples in RNTester (#23354)
Browse files Browse the repository at this point in the history
Summary:
Splits RTLExample into separate exported examples, so they can be filtered. This will help with Detox tests.

Previously the single forceRTL toggle affected multiple examples because they all share state—although the box model examples at the end had their own toggles. Now each example has its own RTL toggle so it is always available even when examples are filtered, and so the examples don't have to share state. There is still the separate forceRTL toggle that changes the setting in `I18nManager`, which affects the default setting when the page appears, as well as the direction of the "with directional meaning" pointer icon.

[General] [Changed] - Split RTLExample into separate exported examples
Pull Request resolved: facebook/react-native#23354

Differential Revision: D14030498

Pulled By: cpojer

fbshipit-source-id: 44eb493297f6a4832b55ef2b02a93dc5c213f337
  • Loading branch information
CodingItWrong authored and facebook-github-bot committed Feb 11, 2019
1 parent 1383922 commit bd284d5
Showing 1 changed file with 279 additions and 217 deletions.
Loading

0 comments on commit bd284d5

Please sign in to comment.