Created
December 19, 2018 15:53
-
-
Save imbudhiraja/239e443fd32a9bd69623bbfc248806da to your computer and use it in GitHub Desktop.
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
export default class example extends React.Component { | |
state = { | |
name : '' | |
} | |
setName=(name)=>{ | |
this.setState({ name }) | |
} | |
render() { | |
return ( | |
<View style={styles.container}> | |
<TextInput onChange={this.setName}> | |
</View> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment