-
Notifications
You must be signed in to change notification settings - Fork 7
<Search /> #10
base: master
Are you sure you want to change the base?
<Search /> #10
Conversation
Title and descriptions styles
value={this.state.value} | ||
placeholder='Search wine' | ||
onChangeText={(text) => {setState({ value: text })}} | ||
onClear={() => {setState({ value: '' })}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please, provide the more complex example, that anyone can copy-paste and it will simply work: with parent component, it state, etc...
|
||
const { driver, select, idFromXPath } = helper | ||
|
||
test('<Expand />', async (t) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to rebase this branch against master
onPress={() => { onRowClick(renderItem) }} | ||
underlayColor={highlightColor}> | ||
<View style={styles.row}> | ||
<Text style={styles.suggestionText} numberOfLines={1}> {renderItem} </Text> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra space
</TouchableOpacity> | ||
) | ||
switch (clearButtonMode) { | ||
case 'never': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add indent
switch (clearButtonMode) {
case 'never':
...rest | ||
} = this.props | ||
let clearButton = ( | ||
<TouchableOpacity style={styles.clearButtonWrapper} onPress={onClear} > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra space
|
||
const items = suggestions.map(renderItem => | ||
<TouchableHighlight | ||
key={shortid.generate()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that this case has low performance
</View> | ||
{ beforeSuggestionsRenderer } | ||
{items.length > 0 && | ||
<KeyboardAvoidingView behavior="height" style={{ flex: 1 }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all stylesheets should be in baseStyles
/> | ||
{ clearButton } | ||
</View> | ||
{ beforeSuggestionsRenderer } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra spaces
</ScrollView> | ||
</KeyboardAvoidingView> | ||
} | ||
{ afterSuggestionsRenderer } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra spaces
I believe we should adopt some best practices from https://github.com/JedWatson/react-select |
No description provided.