用于电话号码的 React Native 组件。
React Native Phone Number Input
Performance oriented React Native Phone Number Input with typings and proper validation for any country.
Made with ❤️ by developer for developers
Click on button.
$ yarn add react-native-phone-number-inputOR
$ npm i react-native-phone-number-input --saveFor more complete example open App.tsx
…defaultCode?: CountryCodewithDarkTheme?: booleanwithShadow?: booleanautoFocus?: booleandefaultValue?: stringvalue?: stringdisabled?: booleandisableArrowIcon?: booleanplaceholder?: string;onChangeCountry?: (country: Country) => void;onChangeText?: (text: string) => void;onChangeFormattedText?: (text: string) => void;containerStyle?: StyleProp;textContainerStyle?: StyleProp;renderDropdownImage?: JSX.Element;textInputProps?: TextInputProps;textInputStyle?: StyleProp;codeTextStyle?: StyleProp;flagButtonStyle?: StyleProp;countryPickerButtonStyle : StyleProp;layout?: "first" | "second";filterProps?: CountryFilterProps;countryPickerProps?: any;getCountryCode: () => CountryCodegetCallingCode: () => string | undefinedgetNumberAfterPossiblyEliminatingZero: () => {number: string , formattedNumber: string };isValidNumber: (number: string) => booleanYES
Upgrade versions['Flipper'] ||= '~> 0.37.0' in podfile.
To get started...
Option 1
Option 2
https://github.com/garganurag893/react-native-phone-number-inputhttps://github.com/garganurag893/react-native-phone-number-input.Reach out to me at one of the following places!
Looking for a React/React-Native Freelance Expert? Email at [email protected]
暂无开放 Issues,或尚未同步最近议题。