I'm using webview from react-native to show a simple browser, however right now I have the problem whenever I open a website like Amazon and I have the app installed on my phone it pushes me to the app like Linking.openUrl would. How can I prevent this behaviour, I would like to stay in my WebView on every site. This is my code:
<WebView
source={{ uri: link }}
style={styles.webView}
geolocationEnabled={true}
allowsLinkPreview={false}
automaticallyAdjustContentInsets={false}
onNavigationStateChange={e => this.setState({ link: e.url })}
onLoadStart={() => this.setState({ loading: true })}
onLoadEnd={() => this.setState({ loading: false })}
ref={ref => (this.webView = ref)}
/>
It seems like there is no prop to solve this, does anyone has an idea how I can achieve that?