Skip to content

Commit

Permalink
Add prop: textInputProps as a dict which will be props of text input.
Browse files Browse the repository at this point in the history
  • Loading branch information
yueshuaijie committed Jul 13, 2016
1 parent 6a50795 commit e9520bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default class Prompt extends Component {
cancelButtonStyle: PropTypes.object,
cancelButtonTextStyle: PropTypes.object,
inputStyle: PropTypes.object,
textInputProps: PropTypes.object,
};

static defaultProps = {
Expand Down Expand Up @@ -116,7 +117,8 @@ export default class Prompt extends Component {
onChangeText={this._onChangeText}
placeholder={placeholder}
autoFocus={true}
underlineColorAndroid="white"/>
underlineColorAndroid="white"
{...this.props.textInputProps} />
</View>
<View style={[styles.dialogFooter, { borderColor }]}>
<TouchableWithoutFeedback onPress={this._onCancelPress}>
Expand Down

0 comments on commit e9520bd

Please sign in to comment.