From e9520bd7f1b4478a3ff506b0c7cdfe3b10eea4e3 Mon Sep 17 00:00:00 2001 From: yueshuaijie Date: Wed, 13 Jul 2016 16:02:27 +0800 Subject: [PATCH] Add prop: textInputProps as a dict which will be props of text input. --- src/Prompt.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Prompt.js b/src/Prompt.js index 68b50f8..04c86b3 100644 --- a/src/Prompt.js +++ b/src/Prompt.js @@ -30,6 +30,7 @@ export default class Prompt extends Component { cancelButtonStyle: PropTypes.object, cancelButtonTextStyle: PropTypes.object, inputStyle: PropTypes.object, + textInputProps: PropTypes.object, }; static defaultProps = { @@ -116,7 +117,8 @@ export default class Prompt extends Component { onChangeText={this._onChangeText} placeholder={placeholder} autoFocus={true} - underlineColorAndroid="white"/> + underlineColorAndroid="white" + {...this.props.textInputProps} />