facebook / facebook/hermes

Intl.NumberFormat maximumFractionDigits not applying with currencyDisplay "name"

Open
#1,825 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
11.3k
Forks
865
Avg merge
1h 30m
Merged PRs (30d)
3

Description

## Bug Description

- [ ] The issue is reproducible with the latest version of React Native.

Hermes git revision (if applicable):
React Native version: 81.5 (expo)
OS: iOS
Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64):

## Steps To Reproduce

Run the code:
```
const number = new Intl.NumberFormat('en-US', {
style: "currency",
currency: 'USD',
currencyDisplay: "name",
maximumFractionDigits: 0,
});
console.log(formatted.format(1)); -> 1.00 US dollars
```

## The Expected Behavior

```1 US dollar```

Contributor guide

Open the contributing guide

Research direction

Start by running the provided Intl.NumberFormat reproduction with React Native 81.5 on iOS and compare it with the expected output. Trace the Hermes implementation and existing tests for currencyDisplay "name" and maximumFractionDigits; done means the example formats 1 as "1 US dollar" while preserving correct pluralization and currency formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.