Skip to content

Android JSC Intl do not support signDisplay option #174

Open
@retyui

Description

Description

I enabled JSC with Intl support:

// android/app/build.gradle
def jscFlavor = 'org.webkit:android-jsc-intl:+'

Then try to format currency with a signDisplay option

Intl.NumberFormat('en-US', {
        signDisplay: 'always',
        style: 'currency',
        currency: 'USD',
}).format(12) // $12.00

And result is $12.00 is incorrect !!! should be +$12.00

Deps:

yarn list jsc-android
└─ [email protected]
   └─ [email protected]

Version

0.66.x

Output of npx react-native info

System:
OS: Linux 5.4 Linux Mint 20.2 (Uma)
CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
Memory: 169.38 MB / 15.46 GB
Shell: 3.4.0 - /usr/bin/fish
Binaries:
Node: 14.19.0 - /usr/bin/node
Yarn: 1.22.17 - /usr/bin/yarn
npm: 6.14.16 - /usr/bin/npm
Watchman: 20211205.130157.0 - /usr/local/bin/watchman
SDKs:
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java: 1.8.0_312 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 16.13.1
react-native: 0.66.4 => 0.66.4
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

See description ....

Snack, code example, screenshot, or link to a repository

See description ....

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions