1.1.3 • Published 7 years ago

react-native-security-keyboard v1.1.3

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

react-native-security-keyboard

A security keyboard, Re - realized TextInput, and more powerful.

Installation

Installation can be done through npm or yarn:

npm i react-native-security-keyboard --save
yarn add react-native-security-keyboard

Usage

Import react-native-security-keyboard and wrap your content inside it:

import SecurityKeyboard from 'react-native-security-keyboard'
<SecurityKeyboard
    placeholder={"手动输入金额"}
    placeholderTextColor={'#E0E0E0'}
    onChangeText={this.XXXX.bind(this)}
    onFocus={this.XXXX.bind(this)}
    style={styles.XXX}
    valueStyle={styles.XXXX}
    ref={$moneyInput=>{
        this.$moneyInput = $moneyInput;
    }}
    regs={this.XXX.bind(this)}
/>

API

Props

PropTypeDescription
disabledStringprohibit input, The default is false.
caretHiddenStringhide cursor, The default is false.
secureTextEntryStringpassword modal, The default is false..
placeholderTextColorStringThe color of the text displayed by the placeholder string.
styleObjectcustom TextInput external style Style, does not support font Style.
valueStyleObjectText content style.
keyboardHeaderelementCustomizing the top of the keyboard.
regsFunc(value)value check, need to return the check after the value out.
onChangeTextFunc(value)Value modified callback.
onFocusFuncThe callback function of the focus.
onBlurFuncA callback function that loses focus

Methods

MethodParameterDescription
clearnoneClear all the content
isFocusednoneThe return value indicates whether the current input box has got the focus.
blurnoneLose focus.
focusnoneGet the focus.

Contact

More methods are needed. Please contact me amaze_y@163.com

Author

Yan