title: React native: how can i pass value in my custom component
body: <p>i want to pass my params value in my custom component so below is my code</p>
  
  <p><strong>Header.js</strong></p>
  
  <pre><code>class Header extends Component {
  
  constructor(props) {
      super(props);
  }
  
  
  render() {
      return (
          &lt;View &gt;
          &lt;Text &gt;Title&lt;/Text&gt;
          &lt;Text&gt;subtitle&lt;/Text&gt;
          &lt;/View&gt;
      );
     }
  
   }
  </code></pre>
  
  <p>I call my Header.js from my <strong>main.js</strong></p>
  
  <pre><code>class Main extends Component {
  
  constructor(props) {
      super(props);
  }
  
  
  render() {
      return (
          &lt;Header title = {this.props.navigation.state.params.screen_title} subtitle= {this.props.navigation.state.params.subtitle} /&gt;
      );
      }
  
   }
  </code></pre>
  
  <p>I pass my title and subtitle in my header component , i just wanted to  know how can i access my passing variable value in my header component ? your all suggestions are appreciable </p>