title: React native props to parent component
body: <p>To start i am sorry i am a new on native react</p>
  
  <p>I have a project with react navigation who show this component.</p>
  
  <pre><code>import React, { Component } from 'react';
  import {FlatList,StyleSheet,View,TouchableHighlight,Text} from 'react-native'
  import {
    Container,
    Button,
    ListItem,
    Left,
    Right,
    Icon,
    Body
  } from 'native-base';
  import Customer from '../Customer';
  import Search from '../../../components/Search'
  
  
  export default class SearchCustomer extends Component {
    constructor(props) {
      super(props);
      this.state = {
        customerList:[]
      }
    }
  
  
  
    render() {
      return (
        &lt;Customer&gt;
          &lt;Search
            setCustomerList = {(customerList) =&gt; {this.setState({customerList})}}
          /&gt;
          &lt;FlatList
              data={this.state.customerList}
              keyExtractor={item =&gt; item.id}
              renderItem={({ item, index}) =&gt; (
                &lt;ListItem onPress={(item) =&gt; this.props.callback()}&gt;
                  &lt;Left style={styles.left}&gt;
                      &lt;Text&gt;{item.firstname} {item.lastname}&lt;/Text&gt;
                      &lt;Text style={styles.subtitle}&gt;{item.email}&lt;/Text&gt;
                  &lt;/Left&gt;
                  &lt;Right&gt;
                    &lt;Icon name='arrow-forward' /&gt;
                  &lt;/Right&gt;
                &lt;/ListItem&gt;
          )}/&gt;
        &lt;/Customer&gt;
      )
    }
  }
  </code></pre>
  
  <p>This component call his parent that here below</p>
  
  <pre><code>import React, { Component } from 'react';
  import {
    Container,
    Button,
    Text,
  } from 'native-base';
  import Order from '../Order';
  
  export default class Customer extends Component {
    constructor(props) {
      super(props);
      this.state = {
  
      }
    }
  
    render() {
      return (
        &lt;Order&gt;
          {this.props.children}
        &lt;/Order&gt;
      )
    }
  }
  </code></pre>
  
  <p>I want to know how can i send data from the child to his parent with this configuration.</p>
  
  <p>Currently i am trying to catch <code>this.props.callback()</code> in the parent but i can't use this <code>callback={() =&gt; {console.log('Ok')}}</code></p>
  
  <p>I have this error</p>
  
  <p><a href="https://i.stack.imgur.com/HL87b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HL87b.png" alt="error onPress call"></a></p>
  
  <p>Someone have a solution ?</p>