To use Intl.NumberFormat() constructor, I get the error “Can’t find variable: Intl”, when I use an android device. On iOS, it works correctly.
Any idea how to fix it? Thanks
Hey @albertog, in order to use Intl on Android you have to build your binary with the intl JavaScriptCore flavor. You can designate which flavor of jsc to use in your app/build.gradle with the line:
Intl
intl
jsc
app/build.gradle
def jscFlavor = 'org.webkit:android-jsc-intl:+'
Cheers, Adam
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.