diff options
author | Hailey <me@haileyok.com> | 2024-10-11 09:30:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-11 09:30:30 -0700 |
commit | 7e5c522718108b26d6eddc46aba47a2e086a2fe3 (patch) | |
tree | ecf9a76893fcaa58c19aa1a5f5441ad545cc0fbb /src/view/shell/index.tsx | |
parent | 8c6384175c8343c0cdc14b4fbefd53127f3f1866 (diff) | |
download | voidsky-7e5c522718108b26d6eddc46aba47a2e086a2fe3.tar.zst |
Move intent handler to a child of `InnerApp` (#5695)
Diffstat (limited to 'src/view/shell/index.tsx')
-rw-r--r-- | src/view/shell/index.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx index 9f7569beb..79fc1a069 100644 --- a/src/view/shell/index.tsx +++ b/src/view/shell/index.tsx @@ -14,6 +14,7 @@ import {StatusBar} from 'expo-status-bar' import {useNavigation, useNavigationState} from '@react-navigation/native' import {useDedupe} from '#/lib/hooks/useDedupe' +import {useIntentHandler} from '#/lib/hooks/useIntentHandler' import {useNotificationsHandler} from '#/lib/hooks/useNotificationHandler' import {usePalette} from '#/lib/hooks/usePalette' import {useNotificationsRegistration} from '#/lib/notifications/notifications' @@ -129,6 +130,8 @@ export const Shell: React.FC = function ShellImpl() { const {fullyExpandedCount} = useDialogStateControlContext() const pal = usePalette('default') const theme = useTheme() + useIntentHandler() + React.useEffect(() => { if (isAndroid) { NavigationBar.setBackgroundColorAsync(theme.palette.default.background) |