Without this, on RN 0.56 on Android, links would default open by Android in Chrome instead of the app's WebView. originWhitelist is new to RN 0.56, and react-native-webview-bridge lacks the default supplied in JS to the Native WebView. So originWhitelist needs to be supplied in userland, or it can be added in react-native-webview-bridge similar to this PR in RN: https://github.com/facebook/react-native/commit/23f8f7aecb1f21f4f5e44fb9e4a7456ea97935c9
Took me a long while to figure this out, here's the workaround:
Without this, on RN 0.56 on Android, links would default open by Android in Chrome instead of the app's WebView. originWhitelist is new to RN 0.56, and
react-native-webview-bridge
lacks the default supplied in JS to the Native WebView. SooriginWhitelist
needs to be supplied in userland, or it can be added inreact-native-webview-bridge
similar to this PR in RN: https://github.com/facebook/react-native/commit/23f8f7aecb1f21f4f5e44fb9e4a7456ea97935c9