We encountered a link in our react-native-webview that was opening an Android chrome intent with the "intent:" scheme.
We tried openAppWithData but realized Uri.parse only handles the "http:" scheme, so we created another method to handle intent scheme using openChromeIntent(dataUri: string, Intent.URI_INTENT_SCHEME).
Summary:
Add function to handle chrome intent links, following the scheme in: Android Intents with Chrome
Context for this pull request:
We encountered a link in our react-native-webview that was opening an Android chrome intent with the "intent:" scheme.
We tried openAppWithData but realized Uri.parse only handles the "http:" scheme, so we created another method to handle intent scheme using openChromeIntent(dataUri: string, Intent.URI_INTENT_SCHEME).
More info on Intent.URI_INTENT_SCHEME.
Others:
Also added an initial index.d.ts for Typescript typing, but I didn't add much typings to the other functions.
Thanks!