title: Navigate callback react native
body: <p>I have two screens. Home and PhotoDetails. On the Home I have photo list.  I want to update the likes on the Home screen if I was like photo on the PhotoDetails screen. Without updating the entire page. Can I use a callback between screens? how? I'm using StackNavigator.
  thanks for the answer</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> &lt;TouchableHighlight
                                      onPress={() =&gt; navigate('PhotoDetails', {
                                          id: rowData.caption.id,
                                          tag: rowData.caption.text,
                                          url: rowData.images.standard_resolution.url,
                                          likes: this.state.likes[rowData.caption.id] || 0
                                      })}&gt;
                                      &lt;Image
                                          source={{uri:rowData.images.standard_resolution.url}}
                                          style={{width: 320, height: 320}}/&gt;
                                  &lt;/TouchableHighlight&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> &lt;Like
                      onPress={()=&gt; {onLike(this.state.id).then((newLikes)=&gt;{
                          this.setState({
                              likes: newLikes
                          })
                      })}}
                      likes={this.state.likes + '' || '0'}
                  /&gt;</code></pre>
  </div>
  </div>
  </p>