Skip to content

Commit

Permalink
Merge pull request #14 from abhishekdewan101/adewan/adding_on_submitt…
Browse files Browse the repository at this point in the history
…ing_end_listener

Adding onSubmitEditing listener
  • Loading branch information
WrathChaos authored Dec 24, 2019
2 parents eaebb96 + 55fbe07 commit a2a9892
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/SearchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default class SearchBar extends Component {
textInputComponent,
cancelIconComponent,
cancelButtonDisable,
onSubmitEditing,
noExtraMargin
} = this.props;

Expand Down Expand Up @@ -87,6 +88,7 @@ export default class SearchBar extends Component {
placeholder={placeholder}
onChangeText={onChangeText}
placeholderTextColor={fontColor}
onSubmitEditing={onSubmitEditing}
style={[textInputStyle(fontSize, fontColor)]}
/>
</View>
Expand Down

0 comments on commit a2a9892

Please sign in to comment.