Skip to content

Commit

Permalink
fix iOS Intl.NumberFormat polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
kacper-mikolajczak committed Jul 9, 2024
1 parent ff557b7 commit baf7a5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/NumberFormatUtils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import type {ValueOf} from 'type-fest';
import type CONST from '@src/CONST';
import intlPolyfill from './IntlPolyfill';
import memoize from './memoize';

intlPolyfill();

const MemoizedNumberFormat = memoize(Intl.NumberFormat, {maxSize: 10});

function format(locale: ValueOf<typeof CONST.LOCALES>, number: number, options?: Intl.NumberFormatOptions): string {
Expand Down

0 comments on commit baf7a5f

Please sign in to comment.