title: Send props on navigation goBack
body: <p>Basically I have three screens, the first is a stack navigator:</p>
  
  <pre><code>const stackNav = createStackNavigator({
      Main: {
          screen: MainScreen,
          navigationOptions:({navigation}) =&gt; ({
              header: null,
          })
      },
      Detail: {
          screen: DetailScreen,
          navigationOptions: (props) =&gt; ({
              title: "Detail",
          })
      }
  })
  </code></pre>
  
  <p>The second one I have a button to go to the Detail screen:</p>
  
  <pre><code>&lt;TouchableOpacity onPress={() =&gt; this.props.navigation.navigate("Detail", {name: l.name, subtitle: l.subtitle})}&gt;
  </code></pre>
  
  <p>The last one is just information, I would like to click a button and execute:
  <code>this.props.navigation.goBack()</code>, but sending props to the second screen (MainScreen), a setState and a integer id, how can I do that?</p>
  
  <p>--<strong>EDIT WITH PARAMS</strong>--</p>
  
  <p>I have this function in MainScreen:</p>
  
  <pre><code>handleOrdem(texto) {
      console.log('texto: '+texto)
      this.setState({
          param: global.ordemAtiva,
          ordemAtiva: !this.state.ordemAtiva
      });
  }
  //The onPress code:
  onPress={() =&gt; this.props.navigation.navigate("Detail", {name: l.name, subtitle: l.subtitle, ordemFunc: () =&gt; this.handleOrdem()})}&gt;
  </code></pre>
  
  <p>and this is how I call it in Detail.screen:</p>
  
  <pre><code>execBack(param){
      console.log('param: '+param);
      this.props.navigation.state.params.ordemFunc(param);
      this.props.navigation.goBack();
  }
  //Button to do it
  onPress={() =&gt; this.execBack('test')}
  </code></pre>