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

feat: support basic layout, typography, and photo carousel in RTL #2334

Merged
merged 5 commits into from
Nov 1, 2024

Conversation

kueda
Copy link
Member

@kueda kueda commented Nov 1, 2024

  • Globalizes Info.plist strings, which signals to the OS that the app supports app-specific languages and allows React Native's default RTL support to kick in (closes Globalize text in Info.plist #2218)
  • Add a wrapper around Text for all typography components that sets sensible defaults, include text orientation that allows React Native to correctly flip the text for RTL
  • Replace react-native-reanimated-carousel with a FlatList, which supports RTL and works pretty much the same

Note: while this does globalize Info.plist strings and sets up Crowdin syncing in a way that should work, crowdin CLI downloads with our configuration will not work until crowdin/crowdin-cli#486 is addressed, so until then we'll need to manually update ios/InfoPlist.xcstrings

Partial work toward #2099

* Use a wrapper around Text for all typography components that sets
  app-specific defaults
* Set one of those defaults to be left-aligned text so RN / iOS can reverse it
  for RTL languages
Also setups up this file for automated Crowdin sync, but that doesn't entire
work yet.
Removes react-native-reanimated-carousel, which needs to be patched to support
RTL and maybe wasn't providing anything beyond FlatList for us anyway.
@kueda kueda changed the title support basic layout, typography, and photo carousel in RTL feat: support basic layout, typography, and photo carousel in RTL Nov 1, 2024
@kueda kueda merged commit 3dcc833 into main Nov 1, 2024
11 checks passed
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.

Globalize text in Info.plist
1 participant