Add Intl support
complete
Bastien Gandouet
We'd like to use Luxon in our app, it is currently not possible because Android JSC is built without it.
It would be great to have to way to use the "with Intl JSC" when building our app.
jsc-android-buildscripts
seems to support it (https://github.com/react-native-community/jsc-android-buildscripts).Brent Vatne
complete
We recently released Expo SDK 42, and now you can create custom development clients in the cloud using EAS Build, or locally with the new Expo run commands.
You can try it out today:
- Create a new project: expo init
- Install the packages: expo install @config-plugins/android-jsc-intl expo-dev-client
- Follow the instructions in the @config-plugins/android-jsc-intl README to add the plugin
Build the native app:
- In the cloud with eas build -p all --profile development(expo builddoes not support custom builds)
- Or locally with expo run:iosandexpo run:android(note: see https://expo.fyi/prebuild-cleanup for information on the generated files)
To be clear, the JSC Intl variant will not have been added to the Expo Go app that you download from the App Store or Google Play Store. It will be added to your custom development client.
We still consider this feature to be completed because users can now create a custom client app that includes this capability, without needing to write any native code.
We hope you enjoy, and we have big plans to continue improving this workflow going forward!
Shoutout to Fernando Rojo for writing this plugin :)
Brent Vatne
complete
We recently released Expo SDK 42, and now you can create custom development clients in the cloud using EAS Build, or locally with the new Expo run commands.
You can try it out today:
- Create a new project: expo init
- Install the packages: expo install @config-plugins/android-jsc-intl expo-dev-client
- Follow the instructions in the @config-plugins/android-jsc-intl README to add the plugin
Build the native app:
- In the cloud with eas build -p all --profile development(expo builddoes not support custom builds)
- Or locally with expo run:iosandexpo run:android(note: see https://expo.fyi/prebuild-cleanup for information on the generated files)
To be clear, the JSC Intl variant will not have been added to the Expo Go app that you download from the App Store or Google Play Store. It will be added to your custom development client.
We still consider this feature to be completed because users can now create a custom client app that includes this capability, without needing to write any native code.
We hope you enjoy, and we have big plans to continue improving this workflow going forward!
Shoutout to Fernando Rojo for writing this plugin :)
Fernando Rojo
Opened a PR to add this: https://github.com/expo/config-plugins/pull/8
Fernando Rojo
This should be a near one-liner now with Expo SDK 42's config plugins. Has anyone made that? cc Brent Vatne
PS Here's a workaround I plan on trying: https://github.com/web-ridge/react-native-paper-dates#android-caveats
Brent Vatne
Fernando Rojo: are you using jsc? if so you can replace the jsc version with the intl variant. replace
org.webkit:android-jsc:+
with org.webkit:android-jsc-intl:+
in app/build.gradle
S
Smisaacs
+1 on this as well
Eugene Chybisov
This is so important feature :(
Boby Microby
To be able to use android-jsc-intl without ejecting will be awesome!
Martin Heidegger
Trying to sort any string without Intl only works in latin languages semi-properly but particularly phonebk collation is really hard to simulate.
Michał Matyas
My initial comment mentioned newer JSC in RN 0.59 but it seems that I was mistaken and Intl is not baked in by default so yeah, definitely +1 on this, using Intl polyfill is annoying and error-prone :(
Adam Gerthel
Intl is lovely, would be neat to be able to use it