|
@@ -51,7 +51,6 @@ export default class CustomHeader extends React.Component<Props> {
|
51
|
51
|
|
52
|
52
|
getSearchBar() {
|
53
|
53
|
return (
|
54
|
|
- <Form>
|
55
|
54
|
<Item
|
56
|
55
|
style={{
|
57
|
56
|
width: '100%',
|
|
@@ -66,7 +65,6 @@ export default class CustomHeader extends React.Component<Props> {
|
66
|
65
|
placeholderTextColor={ThemeManager.getCurrentThemeVariables().toolbarPlaceholderColor}
|
67
|
66
|
onChangeText={(text) => this.props.searchCallback(text)}/>
|
68
|
67
|
</Item>
|
69
|
|
- </Form>
|
70
|
68
|
);
|
71
|
69
|
}
|
72
|
70
|
|
|
@@ -94,7 +92,9 @@ export default class CustomHeader extends React.Component<Props> {
|
94
|
92
|
<Body>
|
95
|
93
|
{this.props.hasSearchField ?
|
96
|
94
|
this.getSearchBar() :
|
97
|
|
- <Title>{this.props.title}</Title>}
|
|
95
|
+ <Title style={{
|
|
96
|
+ paddingLeft: 10
|
|
97
|
+ }}>{this.props.title}</Title>}
|
98
|
98
|
</Body>
|
99
|
99
|
<Right style={{flex: this.props.hasSearchField ? 0 : 1}}>
|
100
|
100
|
{this.props.rightButton}
|