React native 反应本币输入
有人有货币输入库吗 我找到了这个,但是他们没有显示这个单位React native 反应本币输入,react-native,expo,React Native,Expo,有人有货币输入库吗 我找到了这个,但是他们没有显示这个单位 { console.log(formattedValue);//$2310.46 }} /> 您可以使用 下面是实现的一个示例 首先,安装React数字格式 npm i反应编号格式 将其导入到您的文件中 import NumberFormat from 'react-number-format'; ... <NumberFormat thousandSeparator={true} prefix={'$'} /> .
{
console.log(formattedValue);//$2310.46
}}
/>
您可以使用
下面是实现的一个示例
首先,安装React数字格式
npm i反应编号格式
将其导入到您的文件中
import NumberFormat from 'react-number-format';
...
<NumberFormat thousandSeparator={true} prefix={'$'} />
...
从“反应数字格式”导入数字格式;
...
...
您觉得它有用吗??
import NumberFormat from 'react-number-format';
...
<NumberFormat thousandSeparator={true} prefix={'$'} />
...