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

<Search /> #10

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

<Search /> #10

wants to merge 12 commits into from

Conversation

densa
Copy link
Contributor

@densa densa commented Jan 31, 2017

No description provided.

value={this.state.value}
placeholder='Search wine'
onChangeText={(text) => {setState({ value: text })}}
onClear={() => {setState({ value: '' })}}
Copy link
Contributor

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) => {
Copy link
Contributor

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>
Copy link
Contributor

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':
Copy link
Contributor

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} >
Copy link
Contributor

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()}
Copy link
Contributor

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 }}>
Copy link
Contributor

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 }
Copy link
Contributor

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 }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove extra spaces

@isnifer
Copy link
Contributor

isnifer commented Jan 31, 2017

I believe we should adopt some best practices from https://github.com/JedWatson/react-select

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants