【文件属性】:
文件名称:react-native-phone-input:React Native的电话输入框
文件大小:2MB
文件格式:ZIP
更新时间:2021-02-05 11:07:28
react-native input phone telephone country-picker
React本地电话输入
React Native的电话输入框
安装
npm i react-native-phone-input --save
基本用法
import PhoneInput from ' react-native-phone-input '
render (){
return (
< PhoneInput ref = ' phone '>
)
}
自定义您自己的选择器
在componentDidMount中,使this.phone.getPickerData()保持状态
创建用于打开模态的函数(例如onPressFlag)
<PhoneI