Question: I am building a hybrid react-native + ruby on rails app. I am using the `onNavigationStateChange` in the `WebView` component to detect changes in the page, and use this to change the react-native navigation menu. This works fine, but when I tried to use `turbolinks`, there can be a change in the page but the `onNavigationStateChange` is not triggered.

The `onNavigationStateChange` is triggered is with following code

```
  render() { 
    return (
      <WebView
        ref={'webview'}
        automaticallyAdjustContentInsets={false}
        source={{uri: SETTINGS_URL}}
        javaScriptEnabled={true}
        onNavigationStateChange={this.props.onNavigationStateChange}
        startInLoadingState={true}
        scalesPageToFit={true}
      />
    )
  }

```

This works normally, but if I turn on turbolinks, in the ROR app, the `onNavigationStateChange` no longer triggers.

How do I fix this?

Answer: 
This was headache, but [here](https://stackoverflow.com/questions/12276027/how-can-i-return-to-a-parent-activity-correctly/15933890#15933890) I found the solution after 2 days of futile attempts. This has nothing to do with FragmentPageAdapter. I am lucky woman!
You were calling startActivityForResult in the fragments yes? 

For your onActivityResult in the fragment to be called you first have to handle onActivityResult in the activity. Call the super.

```
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
}

```

You should then be able to handle it in your fragment's onActivityResult.