1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

First step to adapt to Android

This commit is contained in:
Zhiyuan Zheng
2021-01-13 01:03:46 +01:00
parent 2df172d026
commit 49715bba0d
39 changed files with 417 additions and 324 deletions

View File

@ -108,7 +108,6 @@ const Index: React.FC<Props> = ({ localCorrupt }) => {
refetchIntervalInBackground: true
}
})
const prevNotification = useSelector(getLocalNotification)
useEffect(() => {
if (queryNotification.data?.pages) {
@ -244,7 +243,7 @@ const Index: React.FC<Props> = ({ localCorrupt }) => {
)
return (
<>
<StatusBar barStyle={barStyle[mode]} />
<StatusBar barStyle={barStyle[mode]} backgroundColor={theme.background} />
<NavigationContainer
ref={navigationRef}
theme={themes[mode]}
@ -293,7 +292,7 @@ const Index: React.FC<Props> = ({ localCorrupt }) => {
<Tab.Screen name='Screen-Me' component={ScreenMe} />
</Tab.Navigator>
<Toast ref={Toast.setRef} config={toastConfig} />
{/* <Toast ref={Toast.setRef} config={toastConfig} /> */}
</NavigationContainer>
</>
)