Skip to content

Instantly share code, notes, and snippets.

@emskaplann
Created November 28, 2019 21:33
Show Gist options
  • Save emskaplann/6578f7bce44bf5346a6300f11f90ff88 to your computer and use it in GitHub Desktop.
Save emskaplann/6578f7bce44bf5346a6300f11f90ff88 to your computer and use it in GitHub Desktop.
TextInput
<View style={styles.inputContainer}>
<TextInput
style={styles.input}
onChangeText={(text) => this.setState({input: text.toLowerCase()})}
value={this.state.input}
/>
<TouchableHighlight style={styles.sendButton} onPress={()=> this.handleSubmit()}>
<View>
<Icon name="send" color="#fff" size={30}/>
</View>
</TouchableHighlight>
</View>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment