From b59f173863699ac587e4dfda5ab48d00eed1f1e7 Mon Sep 17 00:00:00 2001 From: Matt Revell Date: Wed, 15 Jul 2015 06:14:26 -0700 Subject: [PATCH] Issues/#1689 text input warning Summary: This should close issue 1689. Using Object.assign to pass Flow checks. Closes https://github.com/facebook/react-native/pull/1956 Github Author: Matt Revell --- Libraries/Components/TextInput/TextInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index c0b1981e1439c5..141cefab0cfde5 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -411,7 +411,7 @@ var TextInput = React.createClass({ _renderIOS: function() { var textContainer; - var props = this.props; + var props = Object.assign({},this.props); props.style = [styles.input, this.props.style]; if (!props.multiline) {