title: Get parameters and value of instead class react-native
body: <p>I'm new in react-native. I have a class home who have a child named board with many children (Key). Each Key has a parameter value and I'd like to get this when we pressed one of them into my home class.</p>
  
  <pre><code> (I'd like use the parameters here)
   GrandParentClass : 
      class GrandParent extends Component {
        render() {
           return (
             &lt;View style={styles.container}&gt;
                &lt;Parent /&gt;
             &lt;/View&gt;
          );
        }
  }
  </code></pre>
  
  <p>This is the parent</p>
  
  <pre><code>class Board extends Component {
  
  render() {
      return (
          &lt;View style={styles.pinKeyboard}&gt;
              &lt;Key label='1'/&gt;
              &lt;Key label='2'/&gt;
              &lt;Key label='3'/&gt;
              &lt;Key label='4'/&gt;
              &lt;Key label='5'/&gt;
              &lt;Key label='6'/&gt;
              &lt;Key label='7'/&gt;
              &lt;Key label='8'/&gt;
              &lt;Key label='9'/&gt;
              &lt;Key label='0' /&gt;
              &lt;Key label='00' /&gt;
              &lt;Key label='000' /&gt;
          &lt;/View&gt;
      );
  }
  }
  </code></pre>
  
  <p>and into key </p>
  
  <pre><code>    export default class Key extends Component {
          static propTypes = {
          label: React.PropTypes.string.isRequired
       };
  
       render() {
        return (
          &lt;TouchableOpacity style={styles.pinKey} onPress={() =&gt; 
              console.log(this.props.label)}&gt;
             &lt;Text style={{fontSize: 26}}&gt;{this.props.label}&lt;/Text&gt;
          &lt;/TouchableOpacity&gt;
  );
  }
  </code></pre>