react-native-keyboard
A numeric keyboard component.
Install
- npm install react-native-keyboard --save
- import Keyboard from 'react-native-keyboard'
Example
'use strict'; ;; let model = _keys: _listeners: { this_keys; this; } { this_keys; this; } { this_keys = ; this; } { return this_keys; } { if typeof listener === 'function' this_listeners; } { this_listeners; }; Component { superprops; thisstate = text: '' ; } { model; } { model; } { model; } { model; } { return <View style=flex: 1> <View style=flex: 1> <Text style=stylestext>thisstatetext</Text> </View> <Keyboard keyboardType="decimal-pad" onClear=this_handleClear onDelete=this_handleDelete onKeyPress=this_handleKeyPress /> </View> ; }
Props
keyboardType
Type: enum('number-pad', 'decimal-pad');
onKeyPress
Type: func
onDelete
Type: func
onClear
Type: func