Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android JSC Intl do not support signDisplay option #174

Open
retyui opened this issue Nov 28, 2022 · 0 comments
Open

Android JSC Intl do not support signDisplay option #174

retyui opened this issue Nov 28, 2022 · 0 comments

Comments

@retyui
Copy link

retyui commented Nov 28, 2022

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 ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant