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

Some basic styling

This commit is contained in:
Zhiyuan Zheng
2020-11-23 00:07:32 +01:00
parent 6d6b808af2
commit fba1d0d531
40 changed files with 1381 additions and 270 deletions

22
App.tsx
View File

@ -1,7 +1,9 @@
import React from 'react'
import { AppearanceProvider } from 'react-native-appearance'
import { QueryCache, ReactQueryCacheProvider, setConsole } from 'react-query'
import { Provider } from 'react-redux'
import ThemeManager from 'src/utils/styles/ThemeManager'
import { Index } from 'src/Index'
import { store } from 'src/store'
@ -18,12 +20,18 @@ if (__DEV__) {
// whyDidYouRender(React)
}
const App: React.FC = () => (
<ReactQueryCacheProvider queryCache={queryCache}>
<Provider store={store}>
<Index />
</Provider>
</ReactQueryCacheProvider>
)
const App: React.FC = () => {
return (
<AppearanceProvider>
<ThemeManager>
<ReactQueryCacheProvider queryCache={queryCache}>
<Provider store={store}>
<Index />
</Provider>
</ReactQueryCacheProvider>
</ThemeManager>
</AppearanceProvider>
)
}
export default App