Skip to content

Commit

Permalink
Add autoCaptialize & autoCorrect to Toolbar.searchable (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinresol authored and xotahal committed Jan 10, 2017
1 parent c37d6aa commit 2381444
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Toolbar/Toolbar.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ const propTypes = {
* Indicates when input should be focused after the search is opened.
*/
autoFocus: PropTypes.bool,
/**
* Enable auto-capitalize for search input
*/
autoCapitalize: PropTypes.string,
/**
* Enable auto-correct for search input
*/
autoCorrect: PropTypes.bool,
}),
/**
* You can overide any style for the component via this prop
Expand Down Expand Up @@ -338,6 +346,8 @@ class Toolbar extends PureComponent {
<TextInput
ref={(ref) => { this.searchFieldRef = ref; }}
autoFocus={searchable.autoFocus}
autoCapitalize={searchable.autoCapitalize}
autoCorrect={searchable.autoCorrect}
onChangeText={this.onSearchTextChanged}
onSubmitEditing={searchable.onSubmitEditing}
placeholder={searchable.placeholder}
Expand Down

0 comments on commit 2381444

Please sign in to comment.