react-native-text-input-enhance
Advanced tools
Comparing version
{ | ||
"name": "react-native-text-input-enhance", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Text Input Enhance to fix clear text value in React Native Text Input", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,3 +18,3 @@ import React from 'react'; | ||
render() { | ||
const { onChangeText } = this.props; | ||
const { onChangeText, ref } = this.props; | ||
let props = this.props; | ||
@@ -24,3 +24,3 @@ let arrProps = {}; | ||
if (props.hasOwnProperty(key)) { | ||
if (key !== 'onChangeText') { | ||
if (key !== 'onChangeText' || key !== 'ref') { | ||
arrProps = { ...arrProps, [key]: props[key] }; | ||
@@ -32,2 +32,3 @@ } | ||
<T | ||
ref={ref} | ||
value={this.state.text} | ||
@@ -34,0 +35,0 @@ onChangeText={val => { |
677221
0.01%41
2.5%