react-native-masked-text
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -45,2 +45,6 @@ import React, { Component } from 'react'; | ||
_getKeyboardType() { | ||
return this.props.keyboardType || this._maskHandler.getKeyboardType() | ||
} | ||
render() { | ||
@@ -50,3 +54,3 @@ return ( | ||
ref={INPUT_TEXT_REF} | ||
keyboardType={this._maskHandler.getKeyboardType()} | ||
keyboardType={this._getKeyboardType()} | ||
{...this.props} | ||
@@ -53,0 +57,0 @@ onChangeText={(text) => this._onChangeText(text)} |
{ | ||
"name": "react-native-masked-text", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Text and TextInput with mask for React Native applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -353,2 +353,5 @@ # react-native-masked-text | ||
## 1.5.2 | ||
* Adding `keyboardType` to custom mask. (thanks to [Nurbek Abulgazin](https://github.com/nurbek-ab)) | ||
## 1.5.1 | ||
@@ -361,3 +364,3 @@ * Adding `tinymask` to fix some custom mask issues. | ||
## 1.4.0 | ||
* Adding `customTextInput` to allow other inputs instead native TextInput. (thank to [Hellon Canella](https://github.com/helloncanella)) | ||
* Adding `customTextInput` to allow other inputs instead native TextInput. (thanks to [Hellon Canella](https://github.com/helloncanella)) | ||
@@ -364,0 +367,0 @@ ## 1.3.4 |
60269
1441
406