subtracks/App.tsx
austinried 0a31597111 some progress on now playing
image colors gradient working for now playing
fixed track player init losing handle to notification
2021-07-02 16:39:07 +09:00

28 lines
938 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;