title: How do I redirect in react native when button is clicked?
body: <p>How do i go to the next screen in react native when i clicked a button?</p>
  
  <p>Here is my code</p>
  
  <pre><code>import React, { Component } from 'react';
  import {
    AppRegistry,
    StyleSheet,
    Text,
    View,
    Button,
  } from 'react-native';
  import Test from './android/components/Test'
  
  
  export default class ReactTest extends Component {
  
  
    render() {
  
      return (
  
        &lt;View style={styles.container}&gt;
          &lt;Text style={styles.welcome}&gt;
            Welcome click the button to register.
          &lt;/Text&gt;
           &lt;Button
                      style={styles.cancelButton} 
                      onPress={this.editUser}
                      title="Register"
                      color="#343434"
                      accessibilityLabel="Register a User."/&gt;
        &lt;/View&gt;
  
  
      );
    }
  }
  </code></pre>
  
  <p>I am new to react-native. I am trying to navigate from one screen to another when the register button is pressed.</p>