diff --git a/src/view/screens/Storybook/NumberFormat.tsx b/src/view/screens/Storybook/NumberFormat.tsx new file mode 100644 index 0000000000..fbabf6f0fb --- /dev/null +++ b/src/view/screens/Storybook/NumberFormat.tsx @@ -0,0 +1,55 @@ +import React from 'react' +import {Text, View} from 'react-native' +import {useLingui} from '@lingui/react' + +import {formatCount} from '#/view/com/util/numeric/format' +import {atoms as a} from '#/alf' +import {ArrowRight_Stroke2_Corner0_Rounded as ArrowIcon} from '#/components/icons/Arrow' +import {H1} from '#/components/Typography' + +export function NumberFormat() { + const {i18n} = useLingui() + + return ( + +

Number format

+ + + 9 {formatCount(i18n, 9)} + + + 95 {formatCount(i18n, 95)} + + + 150 {formatCount(i18n, 150)} + + + 1049 {formatCount(i18n, 1049)} + + + 1050 {formatCount(i18n, 1050)} + + + 1060 {formatCount(i18n, 1060)} + + + 1090 {formatCount(i18n, 1090)} + + + 1095 {formatCount(i18n, 1095)} + + + 1099 {formatCount(i18n, 1099)} + + + 1100 {formatCount(i18n, 1100)} + + + 10949 {formatCount(i18n, 10949)} + + + 10950 {formatCount(i18n, 10950)} + +
+ ) +} diff --git a/src/view/screens/Storybook/index.tsx b/src/view/screens/Storybook/index.tsx index de3d46533b..9492b9d151 100644 --- a/src/view/screens/Storybook/index.tsx +++ b/src/view/screens/Storybook/index.tsx @@ -18,6 +18,7 @@ import {Forms} from './Forms' import {Icons} from './Icons' import {Links} from './Links' import {Menus} from './Menus' +import {NumberFormat} from './NumberFormat' import {Settings} from './Settings' import {Shadows} from './Shadows' import {Spacing} from './Spacing' @@ -100,6 +101,8 @@ function StorybookInner() { Open Shared Prefs Tester + +