Freeze inactive screens (#1949)
This commit is contained in:
parent
a8aed2c38e
commit
6c8f043e37
2 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,7 @@ import React, {useState, useEffect} from 'react'
|
|||
import {QueryClientProvider} from '@tanstack/react-query'
|
||||
import {SafeAreaProvider} from 'react-native-safe-area-context'
|
||||
import {RootSiblingParent} from 'react-native-root-siblings'
|
||||
import {enableFreeze} from 'react-native-screens'
|
||||
|
||||
import 'view/icons'
|
||||
|
||||
|
@ -32,6 +33,8 @@ import {
|
|||
import {Provider as UnreadNotifsProvider} from 'state/queries/notifications/unread'
|
||||
import * as persisted from '#/state/persisted'
|
||||
|
||||
enableFreeze(true)
|
||||
|
||||
function InnerApp() {
|
||||
const {isInitialLoad} = useSession()
|
||||
const {resumeSession} = useSessionApi()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue