subtracks/App.tsx
2021-07-05 10:27:30 +09:00

28 lines
926 B
TypeScript

import React from 'react'
import { DarkTheme, NavigationContainer } from '@react-navigation/native'
import SplashPage from './src/components/SplashPage'
import RootNavigator from './src/components/navigation/RootNavigator'
import { Provider } from 'jotai'
import { StatusBar, View } from 'react-native'
import colors from './src/styles/colors'
import TrackPlayerState from './src/components/TrackPlayerState'
const theme = { ...DarkTheme }
theme.colors.background = colors.gradient.high
const App = () => (
<Provider>
<StatusBar animated={true} backgroundColor={'rgba(0, 0, 0, 0.4)'} barStyle={'light-content'} translucent={true} />
<TrackPlayerState />
<View style={{ flex: 1, backgroundColor: colors.gradient.high }}>
<SplashPage>
<NavigationContainer theme={theme}>
<RootNavigator />
</NavigationContainer>
</SplashPage>
</View>
</Provider>
)
export default App