vehicle-license-keyboard

vehicle-license-keyboard

Usage no npm install needed!

<script type="module">
  import vehicleLicenseKeyboard from 'https://cdn.skypack.dev/vehicle-license-keyboard';
</script>

README

vehicle-license-keyboard

Usage

import LicenseKeyboard from 'vehicle-license-keyboard';
...

<LicenseKeyboard
   visible={this.state.showKeyboard}
   onChange={value => this.setState({ value })}
   value={this.state.value}
   done={() => this.setState({ showKeyboard: false })}
/>

Api

visible: boolean

control keyboard visible

onChange: value: (string) => void

when user enter then return current value

value: string

used as a controlled value. keyboard will show based on this value

done: () => void

call when keyboard dismiss

confirmButtonStyle: StyleProps

custom confirm button style

confirmButtonText: string

custom confirm button text

cellTextStyle: StyleProps

custom cell text style

safeArea: boolean

whether show safearea padding bottom for iphone X/Xs/XR/Xs Max

containerStyle: StyleProps

overwrite style of keyboard container

zIndex: number

overwrite zIndex style of keyboard wrapper