Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove redundant linking listeners (#1760)

authored by

dan and committed by
GitHub
53afafb0 3e5a64b4

-10
-10
src/App.native.tsx
··· 2 2 import React, {useState, useEffect} from 'react' 3 3 import 'lib/sentry' // must be relatively on top 4 4 import {withSentry} from 'lib/sentry' 5 - import {Linking} from 'react-native' 6 5 import {RootSiblingParent} from 'react-native-root-siblings' 7 6 import * as SplashScreen from 'expo-splash-screen' 8 7 import {GestureHandlerRootView} from 'react-native-gesture-handler' ··· 15 14 import * as notifications from 'lib/notifications/notifications' 16 15 import * as analytics from 'lib/analytics/analytics' 17 16 import * as Toast from './view/com/util/Toast' 18 - import {handleLink} from './Navigation' 19 17 import {QueryClientProvider} from '@tanstack/react-query' 20 18 import {queryClient} from 'lib/react-query' 21 19 import {TestCtrls} from 'view/com/testing/TestCtrls' ··· 34 32 setRootStore(store) 35 33 analytics.init(store) 36 34 notifications.init(store) 37 - Linking.getInitialURL().then((url: string | null) => { 38 - if (url) { 39 - handleLink(url) 40 - } 41 - }) 42 - Linking.addEventListener('url', ({url}) => { 43 - handleLink(url) 44 - }) 45 35 store.onSessionDropped(() => { 46 36 Toast.show('Sorry! Your session expired. Please log in again.') 47 37 })