react-native-masked-text
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -10,12 +10,3 @@ import React, { Component } from 'react'; | ||
let Input = TextInput | ||
let customTextInputProps = {} | ||
export default class TextInputMask extends BaseTextComponent { | ||
constructor(props) { | ||
super(props); | ||
if (props.customTextInput) Input = props.customTextInput | ||
if (props.customTextInputProps) customTextInputProps = props.customTextInputProps | ||
} | ||
getElement() { | ||
@@ -53,2 +44,10 @@ return this.refs[INPUT_TEXT_REF]; | ||
render() { | ||
let Input = TextInput | ||
let customTextInputProps = {} | ||
if (this.props.customTextInput) { | ||
Input = this.props.customTextInput | ||
customTextInputProps = this.props.customTextInputProps || {} | ||
} | ||
return ( | ||
@@ -55,0 +54,0 @@ <Input |
{ | ||
"name": "react-native-masked-text", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Text and TextInput with mask for React Native applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -407,2 +407,5 @@ # react-native-masked-text | ||
# Changelog | ||
## 1.6.1 | ||
* Fixing duplicated custom text input component. (thanks to [Pablo](https://github.com/rochapablo)) | ||
## 1.6.0 | ||
@@ -409,0 +412,0 @@ * Add compatibility to [react-native-textinput-effects](https://github.com/halilb/react-native-textinput-effects) by using `customTextInputProps` (thanks to [Pablo](https://github.com/rochapablo)) |
62699
470
1457