File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const styles = StyleSheet.create({
2727export class SearchBar extends React . Component < Props > {
2828 static defaultProps = {
2929 active : false ,
30+ backButtonAndroid : true ,
3031 onCancel : ( ) => { } ,
3132 onChange : ( ) => { } ,
3233 onFocus : ( ) => { } ,
@@ -50,6 +51,7 @@ export class SearchBar extends React.Component<Props> {
5051 closeButton = { this . props . active ? closeIcon : null }
5152 focusOnLayout = { false }
5253 handleChangeText = { this . props . onChange }
54+ hideBack = { ! this . props . backButtonAndroid }
5355 hideClose = { ! this . props . active }
5456 input = { this . props . value }
5557 onBack = { this . props . onCancel }
Original file line number Diff line number Diff line change 33export type Props = {
44 getRef ?: any ,
55 active ?: boolean ,
6+ backButtonAndroid ?: boolean ,
67 backgroundColor ?: string ,
78 onCancel : ( ) => any ,
89 onChange : string => any ,
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ export class AnimatedSearchbox extends React.Component<Props> {
118118 < Animated . View style = { searchStyle } >
119119 < SearchBar
120120 active = { this . props . active }
121+ backButtonAndroid = { false }
121122 onCancel = { this . handleCancel }
122123 onChange = { this . props . onChange }
123124 onFocus = { this . handleFocus }
You can’t perform that action at this time.
0 commit comments