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

Commit 5cec823

Browse files
authored
Merge pull request #2 from giautm/fix/touchable-issues
Fix Touchable issues
2 parents bb1ea3f + 064fff1 commit 5cec823

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
@@ -30,17 +30,22 @@ const SearchIcon = () => (
3030

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

0 commit comments

Comments
 (0)