How to get values which are in TextInput when Button is click in ReactNative

First you have to stock your data in a state. example: <TextInput style={styles.textInputStyle} placeholder=”Enter Name” returnKeyLabel = {“next”} onChangeText={(text) => this.setState({text})} /> Then you must pass a function that will execute when you click on the button like this: <Button onPress={() => function }> recover your value with : this.state.key example: class AwesomeProject extends Component {… Read More How to get values which are in TextInput when Button is click in ReactNative