Skip to content

Instantly share code, notes, and snippets.

@redbluenat
Last active December 17, 2018 08:49
Show Gist options
  • Save redbluenat/c69d295ef92d124d7b23b4efabf187cc to your computer and use it in GitHub Desktop.
Save redbluenat/c69d295ef92d124d7b23b4efabf187cc to your computer and use it in GitHub Desktop.
input layout
<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