@snskar125/rn-pininput
v1.0.4
Published
Customizable PIN Input Component for React Native
Downloads
11
Maintainers
Readme
@snskar125/rn-pininput
Customizable PIN Input Component for React Native
Usage
import PINInput from '@snskar125/rn-pininput'
import { useState } from 'react'
export default function App(){
const [ value, setValue ] = useState("")
return (
<PINInput value={value} onChangeValue={setValue}/>
)
}
Props
Prop | Type --- | --- value | String onChangeValue | Function numberOfDigits | Number containerStyle | View Style textStyle | Text Style inputBoxStyle | View Style focusedInputBoxStyle | View Style hidden | Boolean onPressInput | Function hiddenCharacter | String animated | Boolean
Methods
focus() blur() shake()