title: How I can test with jest the nested component of my component
body: <p>How I can test the onPress with jest and enzyme my button component inside other component?</p>
  
  <p>Exemplo of the code:</p>
  
  <pre><code>export default class PhoneVerificationScreen extends Component {
     render() {
        return (    
           &lt;GradientButton onPress={this._checkNumber} /&gt;
        );
     }
  }
  </code></pre>
  
  <p>Complete class: <a href="https://pastebin.com/ujN3hF0h" rel="nofollow noreferrer">https://pastebin.com/ujN3hF0h</a></p>