title: How to close modal in react native
body: <p>I'm using react-native-modalbox.</p>
  
  <p>I want to open the ScreenB from the ScreenA. </p>
  
  <p>and I want to close ScreenA after ScreenB open.</p>
  
  <p>Anyone know how to solve it?</p>
  
  <pre><code>import Modal from 'react-native-modalbox';
  import ScreenB from './ScreenB';
  
  class ScreenA extends React.Component {
  
  render() {
      return (
          &lt;View&gt;
              &lt;Modal
                  ref={"modal1"}
                  swipeToClose={true}
                  coverScreen={true}
              &gt;&lt;ScreenB&gt;&lt;/ScreenB&gt;
              &lt;/Modal&gt;
              &lt;View&gt;
                  &lt;TouchableOpacity
                      onPress={() =&gt; this.refs.modal1.open()}&gt;
                      &lt;Text&gt;Click me&lt;/Text&gt;
                  &lt;/TouchableOpacity&gt;
              &lt;/View&gt;
          &lt;/View&gt;
      );
  }
  </code></pre>
  
  <p>}</p>