title: Access data from other component -React Native
body: <p>I have to access object from previous component to show in current component. I'm trying to send a state params as second parameter of navigate method.</p>
  
  <pre><code>this.props.navigation.navigate('detail', { objPass: this.state.stObjPass });
  </code></pre>
  
  <p>while trying to access the value from current component displaying as 'Undefined'</p>
  
  <pre><code>   async componentWillMount() {
     console.log(this.props.state.params.objPass);
     console.log(this.props.objPass);
     console.log(this.props.state.objPass);
      }
  </code></pre>
  
  <p>All of them returning either empty or undefined.</p>
  
  <p>Please let me  know how to share object.</p>