diff options
author | dan <dan.abramov@gmail.com> | 2023-11-17 06:20:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 22:20:08 -0800 |
commit | 6c8f043e370393d593c14dc40cff86b062fc5c52 (patch) | |
tree | eb159cccca0c0f33577ad017158f8796b3401209 /src/App.native.tsx | |
parent | a8aed2c38e1b45d3f816b79fdd42bedfc7918319 (diff) | |
download | voidsky-6c8f043e370393d593c14dc40cff86b062fc5c52.tar.zst |
Freeze inactive screens (#1949)
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r-- | src/App.native.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index af4c3be89..e1db6df83 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -6,6 +6,7 @@ import {RootSiblingParent} from 'react-native-root-siblings' import * as SplashScreen from 'expo-splash-screen' import {GestureHandlerRootView} from 'react-native-gesture-handler' import {QueryClientProvider} from '@tanstack/react-query' +import {enableFreeze} from 'react-native-screens' import 'view/icons' @@ -40,6 +41,7 @@ import {messages} from './locale/locales/en/messages' i18n.load('en', messages) i18n.activate('en') +enableFreeze(true) SplashScreen.preventAutoHideAsync() function InnerApp() { |