title: React Native button press to control imported class state
body: <p>I don't know the exact title for my case, so I'll explain in detail.</p>
  
  <p><strong>Below is my popup class.</strong></p>
  
  <pre><code>export default class Popup extends Component{
      constructor(props){
          super(props);
          this.state={
              isshowing: true,
          }
      }
  
      handleShow(){
          this.setState({isshowing:true})
      }
  
  
      return(
              &lt;View style={{}}&gt;
                          &lt;TouchableOpacity
                              style={{}}
                              onPress={() =&gt; this.setState({isshowing:false})}
                          &gt;
                              &lt;Text&gt;X&lt;/Text&gt;
                          &lt;/TouchableOpacity&gt;
              &lt;/View&gt;
          );
      }
  }
  </code></pre>
  
  <p><em>I've omitted unnecessary things such as style, etc.</em></p>
  
  <p>I want to control the popup classes visibility via the state.</p>
  
  <p>I can make the close button since the closing button is inside popup class but I want to make the external button (inside the main class) make this popup visible since I'm importing popup class.</p>
  
  <p>How can I do that?</p>