question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update documentation regarding Android Intl support

See original GitHub issue

Tested with: react-native: 0.63.3

The docs about react-native support (https://moment.github.io/luxon/docs/manual/matrix.html bottom of page) suggest to use jsc-android-buildscripts to fix missing Intl support on Android.

Using the suggested solution I could not achieve Intl support on Android (on iOS however it worked like a charm from the beginning).

Also, the suggested repo jsc-android-buildscripts does not seem to be regularly maintained and not working at the moment.

Googling around I found this solution that worked for me (without using jsc-android-buildscripts at all): In android/app/build.gradle change the line def jscFlavor = 'org.webkit:android-jsc:+' to def jscFlavor = 'org.webkit:android-jsc-intl:+'

See: https://stackoverflow.com/questions/61408101/how-to-have-luxons-intl-api-working-in-react-native

I would suggest testing this and considering putting it into the official Luxon docs in place of the jsc-android-buildscripts fix.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vladyslavNiemtsevcommented, Feb 10, 2022

@andreialecu Got it. Thanks for clarifying.

So, basically you hold Hermes ‘off’ for IOS to use JSC?

1reaction
chiubakacommented, Nov 12, 2021

Oh, amazing. You’re a life saver @andreialecu!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internationalization APIs | Hermes
This document describes the current state of Android implementation of the ECMAScript Internationalization API Specification (ECMA-402, or Intl ...
Read more >
@config-plugins/android-jsc-intl - npm
Config plugin for android-jsc-intl package. Latest version: 4.0.0, last published: a month ago. Start using @config-plugins/android-jsc-intl ...
Read more >
Intl - JavaScript - MDN Web Docs - Mozilla
Chrome Edge Intl Full support. Chrome24. Toggle history Full support. Edge12. Toggle history @@toStringTag Full support. Chrome86. Toggle history Full support. Edge86. Toggle history Collator Full...
Read more >
Add Intl support | Voters - Expo
To be able to use android-jsc-intl without ejecting will be awesome! 4 likes. ·.
Read more >
Overview | Format.JS
If you're using react-intl in React Native, make sure your runtime has built-in Intl support (similar to JSC International variant). See these issues...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found