Created
September 26, 2017 12:16
-
-
Save hanipcode/d5fe7ce098a6e88b542055f0a3ebbe48 to your computer and use it in GitHub Desktop.
AutoCompleteBox Component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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