We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
signDisplay
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
$12.00
+$12.00
Deps:
yarn list jsc-android └─ [email protected] └─ [email protected]
0.66.x
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
See description ....
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
I enabled JSC with Intl support:
Then try to format currency with a
signDisplay
optionAnd result is
$12.00
is incorrect !!! should be+$12.00
Deps:
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 ....
The text was updated successfully, but these errors were encountered: