title: How to get values which are in TextInput when Button is click in ReactNative
body: <p><strong>1. index.android.js</strong></p>
  
  <pre><code>import React, { Component } from 'react';
  import {
    AppRegistry,
    StyleSheet,
    Text,
    ScrollView,
    TextInput,
    View ,
  } from 'react-native';
  
  var styles = require('./Style/customStyle');
  
  import Button from 'react-native-button';
  import RadioButton from 'react-native-radio-button'
  
  class AwesomeProject extends Component {
  
    constructor(props){
      super(props)
  
      this.state = {
        username: '',
        password: '',
      }
    }
  
    render() {
      return (
      &lt;ScrollView style={styles.content}&gt;
        &lt;View style={styles.content}&gt;
  
          &lt;Text style={styles.welcome}&gt;
            Create Account
          &lt;/Text&gt;
  
          &lt;Text style={styles.textStyle}&gt;
            Name
          &lt;/Text&gt;
  
          &lt;TextInput
            style={styles.textInputStyle}
            placeholder="Enter Name"
            returnKeyLabel = {"next"}
            onChangeText={(text) =&gt; this.setState({text})}
          /&gt;
  
          &lt;Button style={styles.buttonStyle}&gt;
                Submit
          &lt;/Button&gt;
  
          &lt;/View&gt;
        &lt;/ScrollView&gt;
      );
    }
  }
  
  AppRegistry.registerComponent('AwesomeProject', () =&gt; AwesomeProject);
  </code></pre>