rc-keyboard
v1.0.1
Published
ios react keyboard
Downloads
8
Maintainers
Readme
虚拟键盘
使用
import React, {Component} from 'react';
import {Keyboard, Enpad, Numpad} from 'rc-keyboard';
<Keyboard
visible={this.state.visible}
dark={false}
input="id"
extraKey={null}
keypad={Numpad}
onCancel={()=>this.setState({visible: false})}
/>
参数
Keyboard
input
[string] input的idvisible
[bool] 显示键盘dark
[bool] 是否暗色主题keypad
[func] 组件 Enpad/NumpadonCancel
[func] 关闭键盘的时候执行extraKey
[string] keypad 为 Numpad 时 定义左下角按键 默认 '00', 可以是 '00', 'x', '.' , nulltitle
[any] toolbar 中间的部分closeButton
[bool] 是否显示关闭按钮closeText
[string] 定义关闭按钮文字