Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Freeze inactive screens (#1949)

authored by

dan and committed by
GitHub
6c8f043e a8aed2c3

+5
+2
src/App.native.tsx
··· 6 6 import * as SplashScreen from 'expo-splash-screen' 7 7 import {GestureHandlerRootView} from 'react-native-gesture-handler' 8 8 import {QueryClientProvider} from '@tanstack/react-query' 9 + import {enableFreeze} from 'react-native-screens' 9 10 10 11 import 'view/icons' 11 12 ··· 40 41 i18n.load('en', messages) 41 42 i18n.activate('en') 42 43 44 + enableFreeze(true) 43 45 SplashScreen.preventAutoHideAsync() 44 46 45 47 function InnerApp() {
+3
src/App.web.tsx
··· 4 4 import {QueryClientProvider} from '@tanstack/react-query' 5 5 import {SafeAreaProvider} from 'react-native-safe-area-context' 6 6 import {RootSiblingParent} from 'react-native-root-siblings' 7 + import {enableFreeze} from 'react-native-screens' 7 8 8 9 import 'view/icons' 9 10 ··· 31 32 } from 'state/session' 32 33 import {Provider as UnreadNotifsProvider} from 'state/queries/notifications/unread' 33 34 import * as persisted from '#/state/persisted' 35 + 36 + enableFreeze(true) 34 37 35 38 function InnerApp() { 36 39 const {isInitialLoad} = useSession()