Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Commit 28f96e8

Browse files
author
edweis
committed
add hideBackButton props
1 parent a134c55 commit 28f96e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SearchLayout.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default class SearchLayout extends React.Component {
1414
debounce: 500,
1515
headerBackgroundColor: '#fff',
1616
headerTintColor: DEFAULT_TINT_COLOR,
17+
hideBackButton: false
1718
};
1819

1920
state = {
@@ -36,7 +37,7 @@ export default class SearchLayout extends React.Component {
3637
<Header
3738
backgroundColor={this.props.headerBackgroundColor}
3839
tintColor={this.props.headerTintColor}
39-
backButton={Platform.OS === 'android'}>
40+
backButton={Platform.OS === 'android' && !this.props.hideBackButton}>
4041
<SearchBar
4142
onChangeQuery={this._handleChangeQuery}
4243
onSubmit={this._handleSubmit}

0 commit comments

Comments
 (0)