Update documentation regarding Android Intl support
See original GitHub issueTested 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:
- Created 3 years ago
- Reactions:1
- Comments:16 (3 by maintainers)
@andreialecu Got it. Thanks for clarifying.
So, basically you hold Hermes ‘off’ for IOS to use JSC?
Oh, amazing. You’re a life saver @andreialecu!