react-native-virtual-keyboard
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "react-native-virtual-keyboard", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "React native's software/virtual keyboard, which can be used instead of Android/iOS ones if it suits your app style better.", | ||
@@ -5,0 +5,0 @@ "main": "./src/VirtualKeyboard.js", |
@@ -16,3 +16,3 @@ 'use strict'; | ||
const backspaceImg = require('../img/backspace.png'); | ||
const backspaceImg = require('./backspace.png'); | ||
@@ -42,8 +42,8 @@ class VirtualKeyboard extends Component { | ||
<View style={styles.container}> | ||
{this.KeyboardRow([1, 2, 3])} | ||
{this.KeyboardRow([4, 5, 6])} | ||
{this.KeyboardRow([7, 8, 9])} | ||
{this.Row([1, 2, 3])} | ||
{this.Row([4, 5, 6])} | ||
{this.Row([7, 8, 9])} | ||
<View style={styles.keyboardRow}> | ||
<View style={{ flex: 1 }} /> | ||
{this.KeyboardCell(0)} | ||
{this.Cell(0)} | ||
<TouchableOpacity accessibilityLabel='backspace' style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }} onPress={() => { this.onPress('back') }}> | ||
@@ -57,4 +57,4 @@ <Image source={backspaceImg} style={{ tintColor: this.props.color }} /> | ||
KeyboardRow(numbersArray) { | ||
let cells = numbersArray.map((val) => this.KeyboardCell(val)); | ||
Row(numbersArray) { | ||
let cells = numbersArray.map((val) => this.Cell(val)); | ||
return ( | ||
@@ -67,3 +67,3 @@ <View style={styles.keyboardRow}> | ||
KeyboardCell(number) { | ||
Cell(number) { | ||
return ( | ||
@@ -70,0 +70,0 @@ <TouchableOpacity style={{ flex: 1 }} accessibilityLabel={number.toString()} onPress={() => { this.onPress(number.toString()) }}><Text style={[styles.keyboardNumber, { color: this.props.color }]}>{number}</Text></TouchableOpacity> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4333