1.1.1 • Published 6 years ago

react-native-phone-mask-input v1.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

@kai24/react-native-phone-mask-input

Version License Monthly Downloads

Installation

yarn

yarn add @kai24/react-native-phone-mask-input

npm

npm i @kai24/react-native-phone-mask-input --save

Usage

import PhoneMaskInput from  "@kai24/react-native-phone-mask-input";
<PhoneMaskInput
    value=''
    placeholder='Enter phone'
    onChange={(value) => console.log('value', value)}
/>

Props

NameTypeDefaultDescription
valueString, NumberValue to be render in the input
placeholderString""Placeholder to be shown when no tags
autoDetectCountryBooleanfalseDetect visitor country
showFlagBooleanfalseShow country flag
flagSizeStringnormalAvailable values: small, normal, big
wrapperClassString{ display: flex; flex-direction: row; align-items: center; height: 40px; }Style class of div wrapper input and flag
inputClassString{ height: 20px; }Style class of input
flagClassString{ margin: 0; }Style class of flag (span tag)