handle share intents when app first launches (#9410)
This commit is contained in:
+4
@@ -23,6 +23,10 @@ class ExpoReceiveAndroidIntentsModule : Module() {
|
||||
ModuleDefinition {
|
||||
Name("ExpoReceiveAndroidIntents")
|
||||
|
||||
OnCreate {
|
||||
handleIntent(appContext.currentActivity?.intent)
|
||||
}
|
||||
|
||||
OnNewIntent {
|
||||
handleIntent(it)
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ const VALID_IMAGE_REGEX = /^[\w.:\-_/]+\|\d+(\.\d+)?\|\d+(\.\d+)?$/
|
||||
let previousIntentUrl = ''
|
||||
|
||||
export function useIntentHandler() {
|
||||
const incomingUrl = Linking.useURL()
|
||||
const incomingUrl = Linking.useLinkingURL()
|
||||
const composeIntent = useComposeIntent()
|
||||
const verifyEmailIntent = useVerifyEmailIntent()
|
||||
const ageAssuranceRedirectDialogControl =
|
||||
@@ -108,6 +108,7 @@ export function useIntentHandler() {
|
||||
} else {
|
||||
tryApplyUpdate(channel)
|
||||
}
|
||||
return
|
||||
}
|
||||
default: {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user