Last active
December 17, 2018 08:49
-
-
Save redbluenat/c69d295ef92d124d7b23b4efabf187cc to your computer and use it in GitHub Desktop.
input layout
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
<View> | |
<Text style={styles.welcome}>Dogs data:</Text> | |
<TextInput | |
style={styles.input} | |
onChangeText={text => this.setState({ name: text })} | |
value={this.state.name} | |
placeholder="name/> | |
<TextInput | |
style={styles.input} | |
onChangeText={text => this.setState({ type: text })} | |
value={this.state.type} | |
placeholder="type/> | |
<Button | |
onPress={() => {}} | |
title="Add dog"/> | |
</View> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment