Skip to content

Instantly share code, notes, and snippets.

@ayberkanilatsiz
Created October 11, 2017 11:12
Show Gist options
  • Save ayberkanilatsiz/e6bd8d034efb57f5d4439d4eea4d4cc7 to your computer and use it in GitHub Desktop.
Save ayberkanilatsiz/e6bd8d034efb57f5d4439d4eea4d4cc7 to your computer and use it in GitHub Desktop.
renderUsernameView
renderUsernameView(){
return(
<View style={ styles.container }>
<View style={ styles.textInputContainer }>
<TextInput
style={styles.textInput}
placeholder={'Username'}
onChangeText={(username) => this.setState({username})}
underlineColorAndroid={'transparent'}
value={this.state.text}
/>
</View>
<TouchableOpacity onPress={ this.start } style={styles.button}>
<Text style={ styles.buttonText }>
Lets Start!
</Text>
</TouchableOpacity>
</View>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment