Skip to content

Instantly share code, notes, and snippets.

@hanipcode
Created September 26, 2017 12:16
Show Gist options
  • Select an option

  • Save hanipcode/d5fe7ce098a6e88b542055f0a3ebbe48 to your computer and use it in GitHub Desktop.

Select an option

Save hanipcode/d5fe7ce098a6e88b542055f0a3ebbe48 to your computer and use it in GitHub Desktop.
AutoCompleteBox Component
import React, { Component } from 'react';
import { TextInput, StyleSheet } from 'react-native';
const styles = StyleSheet.create({
AutoCompleteBox: {
marginHorizontal: 20,
padding: 10,
alignSelf: 'stretch',
backgroundColor: '#FFF',
borderColor: '#BBB',
borderWidth: 2,
borderRadius: 3,
elevation: 3
}
});
class AutoCompleteBox extends Component {
render() {
return (
<TextInput
{...this.props}
style={styles.AutoCompleteBox}
underlineColorAndroid="#FFF"
/>
);
}
}
export default AutoCompleteBox;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment