├── .gitattributes ├── .gitignore ├── README.md ├── README_CN.md ├── index.js ├── package-lock.json ├── package.json └── src ├── component ├── ParcelKeyboardView.js ├── keyboardMethods.js ├── securityKeyboardBase.js └── securityKeyboardInput.js ├── resource ├── images │ ├── back.png │ ├── icon-delete.png │ ├── icon-down.png │ ├── space.png │ ├── text.png │ ├── transform.png │ └── transform2.png └── json │ └── keyboard.js └── style ├── securityKeyboard.js └── securityKeyboardInput.js /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # OSX 3 | # 4 | .DS_Store 5 | 6 | # node.js 7 | # 8 | node_modules/ 9 | npm-debug.log 10 | yarn-error.log 11 | 12 | 13 | # Xcode 14 | # 15 | build/ 16 | *.pbxuser 17 | !default.pbxuser 18 | *.mode1v3 19 | !default.mode1v3 20 | *.mode2v3 21 | !default.mode2v3 22 | *.perspectivev3 23 | !default.perspectivev3 24 | xcuserdata 25 | *.xccheckout 26 | *.moved-aside 27 | DerivedData 28 | *.hmap 29 | *.ipa 30 | *.xcuserstate 31 | project.xcworkspace 32 | 33 | 34 | # Android/IntelliJ 35 | # 36 | build/ 37 | .idea 38 | .gradle 39 | local.properties 40 | *.iml 41 | 42 | # BUCK 43 | buck-out/ 44 | \.buckd/ 45 | *.keystore 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # react-native-supervons-custom-keyboard 3 | [![NPM Version](https://img.shields.io/npm/v/react-native-supervons-custom-keyboard.svg?style=flat)](https://www.npmjs.com/package/react-native-supervons-custom-keyboard) 4 | [![NPM Version](https://img.shields.io/npm/dm/react-native-supervons-custom-keyboard.svg?style=flat)](https://www.npmjs.com/package/react-native-supervons-custom-keyboard) 5 | 6 | English [简体中文](/README_CN.md "中文介绍") 7 | 8 | # github(welcome star━(*`∀´*)ノ亻!) 9 | https://github.com/supervons/react-native-supervons-custom-keyboard 10 | 11 | ## Summary 12 | ``` 13 | Developed based on react-native-security-keyboard,add: 14 | 1. Uppercase and lowercase letters 15 | 2. Character 16 | 3. Key response 17 | 4. Switch keyboard type 18 | 5. Randomly arrange the keyboard 19 | 20 | Thanks yanzhandong source sharing 21 | ``` 22 | ## Preview gif 23 | 24 | iOS 动态图 25 | 26 | ## Preview 27 | iOS地图图片android地图图片 28 | 29 | ## DEMO 30 | https://github.com/supervons/ExploreRN/blob/master/src/screens/login/index.js 31 | 32 | ## Getting started 33 | 34 | `$ npm install react-native-supervons-custom-keyboard --save` 35 | 36 | 37 | ## Usage 38 | ```js 39 | import React, { Component } from 'react'; 40 | import { View, Button } from 'react-native'; 41 | import { SecurityKeyboardInput } from 'react-native-supervons-custom-keyboard'; 42 | ``` 43 | ```jsx 44 | export default class MainPage extends Component { 45 | constructor(props) { 46 | super(props); 47 | this.state = { 48 | inputValue: '' 49 | }; 50 | } 51 | 52 | render() { 53 | return ( 54 | 55 | 56 | this.setState({ inputValue: text })} 67 | /> 68 |