about summary refs log tree commit diff
path: root/src/App.native.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-02-27 10:35:38 -0800
committerGitHub <noreply@github.com>2024-02-27 10:35:38 -0800
commit2a04546c7305b9bf03ea6cd26ce728ed773e2673 (patch)
treeac52dcc02d170bdc9970514387352ab8e08b2bc1 /src/App.native.tsx
parentc8d02a791a84a243b290b3a1479aa6ac097a51fa (diff)
downloadvoidsky-2a04546c7305b9bf03ea6cd26ce728ed773e2673.tar.zst
Intent handler (#2992)
* Handle URL params

* Add resources

* Add other params

* refactor for scope

* modify the pr to support intents rather than utm

remove linebreak

remove linebreak

handle web

adjust path check to work on web

add a short delay for opening the composer

setup compose intent, move to `intents` directory

fix intent logic

ignore incoming intents in the navigation router

* refactor

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r--src/App.native.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx
index 1284154f3..f08a6235b 100644
--- a/src/App.native.tsx
+++ b/src/App.native.tsx
@@ -45,6 +45,7 @@ import {Splash} from '#/Splash'
 import {Provider as PortalProvider} from '#/components/Portal'
 import {msg} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
+import {useIntentHandler} from 'lib/hooks/useIntentHandler'
 
 SplashScreen.preventAutoHideAsync()
 
@@ -53,6 +54,7 @@ function InnerApp() {
   const {resumeSession} = useSessionApi()
   const theme = useColorModeTheme()
   const {_} = useLingui()
+  useIntentHandler()
 
   // init
   useEffect(() => {