lucasferreira / react-native-send-intent

React Native Android module to use Android's Intent actions for send text to shareable apps or make phone calls or opening third party apps
418 stars 159 forks source link

Add handling for chrome intents #85

Closed dyihoon90 closed 5 years ago

dyihoon90 commented 5 years ago

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!

lucasferreira commented 5 years ago

Hi @dyihoon90

Sorry for this huge delay, your contrib seems very good.

Thanks for all ;)