Skip to content

Commit 3fda396

Browse files
authored
Merge pull request #2733 from StoDevX/nix-autocorrect-searchbar
Disable autocorrect in controlled searchbar
2 parents bea9fde + 1f0c849 commit 3fda396

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

source/views/components/searchbar/index.android.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export class SearchBar extends React.Component<Props> {
4545
return (
4646
<NativeSearchBar
4747
ref={this.handleRef}
48+
autoCorrect={false}
4849
backButton={backButton}
4950
closeButton={this.props.active ? closeIcon : null}
5051
focusOnLayout={false}

source/views/components/searchbar/index.ios.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export class SearchBar extends React.Component<Props> {
4040
return (
4141
<NativeSearchBar
4242
ref={this.handleRef}
43+
autoCorrect={false}
4344
barTintColor={this.props.backgroundColor}
4445
hideBackground={true}
4546
onCancelButtonPress={this.props.onCancel}

0 commit comments

Comments
 (0)