Create-react-native-app: RTL Support

Created on 12 May 2017  路  5Comments  路  Source: expo/create-react-native-app

How can I enable RTL through crna/expo, the steps shown online are only for projects created with react-native standard cli. Would I have to eject to do this?

Most helpful comment

Hi @iRoachie! YMMV with this right now. You can try this out:

  • https://snack.expo.io/SyNfcp7l-
  • Open the app, tap the switch, then reload the app (using the notification drawer on Android or shake and press reload on iOS)

We haven't got around to thoroughly testing and integrating react-native I18n support into Expo/CRNA yet but it might work for your use cases as described above.

All 5 comments

Hi @iRoachie! YMMV with this right now. You can try this out:

  • https://snack.expo.io/SyNfcp7l-
  • Open the app, tap the switch, then reload the app (using the notification drawer on Android or shake and press reload on iOS)

We haven't got around to thoroughly testing and integrating react-native I18n support into Expo/CRNA yet but it might work for your use cases as described above.

Thanks! This will do for now!

Hi there, any tricks to load the app with I18nManager.forceRTL() for a single (RTL) language app?
i can't get it to work with Expo. Maybe it's a matter of putting the forceRTL in the right lifecycle method? Thanks

@eldadcaspi - we haven't tested it a lot, like I mentioned above unfortunately it only seems to work when you reload the app after calling forceRTL

Any new updtes?

Was this page helpful?
0 / 5 - 0 ratings