diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index 493bdedc332a..af4a8ffc2b5a 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -538,11 +538,13 @@ const TextInput = React.createClass({ var props = Object.assign({}, this.props); props.style = [styles.input, this.props.style]; if (!props.multiline) { - for (var propKey in onlyMultiline) { - if (props[propKey]) { - throw new Error( - 'TextInput prop `' + propKey + '` is only supported with multiline.' - ); + if (__DEV__) { + for (var propKey in onlyMultiline) { + if (props[propKey]) { + throw new Error( + 'TextInput prop `' + propKey + '` is only supported with multiline.' + ); + } } } textContainer =