Closed achorein closed 6 months ago
Summary
import { ShareIntentProvider, useShareIntentContext, hasShareIntent, addStateListener } from "expo-share-intent";
Todo
onResetShareIntent
onResetShareIntent: () => navigationRef.current?.navigate("Home"),
hasShareIntent()
const shareIntentEventSubscription = addStateListener((event) => { if (event.value === "pending") { // Go to screen with useShareIntent hook } });
Test
Summary
Todo
onResetShareIntent
callback in options to handle hook shareintent state changehasShareIntent()
to know if a pending intent is readyTest