handle share intents when app first launches (#9410)

This commit is contained in:
Samuel Newman
2025-11-20 17:52:33 +02:00
committed by GitHub
parent 9823bc98e9
commit f5a5eee32c
2 changed files with 6 additions and 1 deletions
@@ -23,6 +23,10 @@ class ExpoReceiveAndroidIntentsModule : Module() {
ModuleDefinition {
Name("ExpoReceiveAndroidIntents")
OnCreate {
handleIntent(appContext.currentActivity?.intent)
}
OnNewIntent {
handleIntent(it)
}
+2 -1
View File
@@ -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