From 0ab8ef3e46a9ce48518206815385c3834b27cfd2 Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Fri, 8 Mar 2024 02:31:38 +0800 Subject: [PATCH] chore: enable share intent --- src/services/NativeService/hooks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/NativeService/hooks.ts b/src/services/NativeService/hooks.ts index 927c72d..a84e84c 100644 --- a/src/services/NativeService/hooks.ts +++ b/src/services/NativeService/hooks.ts @@ -11,7 +11,7 @@ * * Also comment out all code inside `useRegisterReceivingShareIntent`. */ -// import { useShareIntent } from 'expo-share-intent'; +import { useShareIntent } from 'expo-share-intent'; import { useEffect } from 'react'; import { useRegisterProxy } from 'react-native-postmessage-cat'; import { nativeService } from '.'; @@ -33,7 +33,7 @@ export function useRequestNativePermissions() { export function useRegisterReceivingShareIntent() { /** UnComment `return;` to fix `Error: Cannot find native module 'ExpoShareIntentModule', js engine: hermes` */ - return; + // return; const { hasShareIntent, shareIntent, resetShareIntent, error } = useShareIntent({ debug: true, });