diff options
author | dan <dan.abramov@gmail.com> | 2023-10-27 05:05:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-26 21:05:48 -0700 |
commit | 53afafb04feebac69ccdb577fc51b0a195fd9d0d (patch) | |
tree | 081d88ae61290da8f6e89c1d8ecaec6c0e714939 /src | |
parent | 3e5a64b4545628f72f0060b08a26e93af8eed072 (diff) | |
download | voidsky-53afafb04feebac69ccdb577fc51b0a195fd9d0d.tar.zst |
Remove redundant linking listeners (#1760)
Diffstat (limited to 'src')
-rw-r--r-- | src/App.native.tsx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index 011b0b609..f4298c461 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -2,7 +2,6 @@ import 'react-native-url-polyfill/auto' import React, {useState, useEffect} from 'react' import 'lib/sentry' // must be relatively on top import {withSentry} from 'lib/sentry' -import {Linking} from 'react-native' import {RootSiblingParent} from 'react-native-root-siblings' import * as SplashScreen from 'expo-splash-screen' import {GestureHandlerRootView} from 'react-native-gesture-handler' @@ -15,7 +14,6 @@ import {Shell} from './view/shell' import * as notifications from 'lib/notifications/notifications' import * as analytics from 'lib/analytics/analytics' import * as Toast from './view/com/util/Toast' -import {handleLink} from './Navigation' import {QueryClientProvider} from '@tanstack/react-query' import {queryClient} from 'lib/react-query' import {TestCtrls} from 'view/com/testing/TestCtrls' @@ -34,14 +32,6 @@ const App = observer(function AppImpl() { setRootStore(store) analytics.init(store) notifications.init(store) - Linking.getInitialURL().then((url: string | null) => { - if (url) { - handleLink(url) - } - }) - Linking.addEventListener('url', ({url}) => { - handleLink(url) - }) store.onSessionDropped(() => { Toast.show('Sorry! Your session expired. Please log in again.') }) |