1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
Zhiyuan Zheng
2021-03-23 23:16:01 +01:00
parent 6da2f545f6
commit b07db55573
6 changed files with 81 additions and 54 deletions

View File

@ -119,6 +119,8 @@ const Screens: React.FC<Props> = ({ localCorrupt }) => {
routeRef.current = {
name: currentRoute?.name,
params: currentRoute?.params
? JSON.stringify(currentRoute.params)
: undefined
}
}, [])
const navigationContainerOnStateChange = useCallback(() => {
@ -144,7 +146,10 @@ const Screens: React.FC<Props> = ({ localCorrupt }) => {
return (
<>
<StatusBar barStyle={barStyle[mode]} backgroundColor={theme.backgroundDefault} />
<StatusBar
barStyle={barStyle[mode]}
backgroundColor={theme.backgroundDefault}
/>
<NavigationContainer
ref={navigationRef}
theme={themes[mode]}