Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. <View style={{ borderBottomWidth: 0.4, borderBottomColor: '#858585' }}>
  2. <TouchableOpacity
  3. style={Style.suggestionView}
  4. onPress={() => {
  5. this.props.UserStore.addRecentSearch(item[this.props.text_key])
  6. this.props.NavigationStore.navigate({ routeName: 'ProductInfo', params: { item } })
  7. this.autoCompleteTimeout = setTimeout(() => {
  8. if (mounted) this.setState({ showAutoComplete: false })
  9. }, 400)
  10. }}
  11. >
  12. <Text style={{ marginLeft: 20, textAlign: 'left', color: '#9B999A', fontFamily: 'Poppins-bold' }}>{suggestion}</Text>
  13. <Icon name='chevron-right' size={20} style={{ color: 'grey' }} />
  14. </TouchableOpacity>
  15. </View>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement