Use android-jsc-intl without ejecting

Please provide the following:

  1. SDK Version: 37.0.10
  2. Platforms(Android/iOS/web/all): Android

Hello,
Is it possible to use android-jsc-intl on Android without ejecting ?
I absolutely need to use localeCompare to alphabetically sort words in French, it is sorting as intended on iOS but not on Android. I read that i needed to use android-jsc-intl instead of the default / lightweight android-jsc js runtime used on Android.

One alternative would be to use the Intl constructor (intl.Collator('fr').compare) which is working as intended on iOS but the Intl constructor is undefined on Android.

The thing is I was able to build my entire app trying not to eject by finding alternatives for other problems but it seems it is my only choice here. I tried to find polyfills for localeCompare and Intl to use only on Android without success :confused:.

Can I use a specific version of this repo in my non-ejected workflow ?

Is there any solution to use android-jsc-intl for Android without ejecting ?

2 Likes

Same thing here. Upvote +1

It looks like it’s the only solution :confused:.
Maybe we could have the choice of using android-jsc or android-jsc-intl in the future when creating a new project.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.