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

Commit 064fff1

Browse files
authored
1 parent 36e531e commit 064fff1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/SearchBar.ios.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,22 @@ const SearchIcon = () =>
3131

3232
@withNavigation
3333
class PlaceholderButtonSearchBar extends React.PureComponent {
34+
static defaultProps = {
35+
placeholder: 'Search',
36+
placeholderTextColor: '#ccc',
37+
}
38+
3439
render() {
3540
return (
3641
<View style={styles.container}>
3742
<TouchableWithoutFeedback
3843
hitSlop={{ top: 10, left: 10, bottom: 5, right: 10 }}
3944
onPress={this._handlePress}>
40-
<View style={styles.searchContainer}>
45+
<View style={styles.searchContainer} pointerEvents='box-only'>
4146
<TextInput
4247
editable={false}
43-
placeholder="Search"
44-
placeholderTextColor={this.props.placeholderTextColor || '#ccc'}
48+
placeholder={this.props.placeholder}
49+
placeholderTextColor={this.props.placeholderTextColor}
4550
selectionColor={this.props.selectionColor}
4651
style={styles.searchInput}
4752
/>

0 commit comments

Comments
 (0)