简体   繁体   English

反应本机电话号码输入

[英]React Native Phone Number Input

I've been hunting the web trying to find out how to get the standard IOS number input fields to be displayed through React Native but am having no luck. 我一直在网上搜索,试图找出如何通过React Native显示标准的IOS编号输入字段,但是没有运气。 I've found libraries like React-Native-Phone-Input however don't want the bulk of another library. 我已经找到像React-Native-Phone-Input这样的库,但是却不希望再有其他库。

All I need is the ability to display the native number input field, that is if this is even possible? 我需要的就是显示本机数字输入字段的能力,也就是说,是否有可能?

iOS文字输入

Refer the below react native component property 请参阅以下反应本机组件属性

http://facebook.github.io/react-native/docs/textinput#keyboardtype http://facebook.github.io/react-native/docs/textinput#keyboardtype

Use the 使用

<TextInput keyboardType={'phone-pad'} />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM