![](/img/trans.png)
[英]How can I export variables of componentDidMount ( react/react-native)
[英]How to i can calclulate in react-native input?
在您的 TextInput 中添加keyboardType="numeric" 参数,我认为问题是用字符串计算而不是数字看这里textinput
<TextInput
...
keyboardType="numeric"
/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.