mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 09:09:29 +01:00
48 lines
1.3 KiB
TypeScript
48 lines
1.3 KiB
TypeScript
import ProgressHook from '@app/components/ProgressHook'
|
|
import RootNavigator from '@app/navigation/RootNavigator'
|
|
import queryClient from '@app/query/queryClient'
|
|
import SplashPage from '@app/screens/SplashPage'
|
|
import { useStore } from '@app/state/store'
|
|
import colors from '@app/styles/colors'
|
|
import React from 'react'
|
|
import { StatusBar, StyleSheet, View } from 'react-native'
|
|
import { MenuProvider } from 'react-native-popup-menu'
|
|
import { QueryClientProvider } from 'react-query'
|
|
|
|
const Debug = () => {
|
|
const currentTrackTitle = useStore(store => store.currentTrack?.title)
|
|
console.log('currentTrackTitle', currentTrackTitle)
|
|
return <></>
|
|
}
|
|
|
|
const App = () => {
|
|
return (
|
|
<QueryClientProvider client={queryClient}>
|
|
<MenuProvider backHandler={true}>
|
|
<View style={styles.appContainer}>
|
|
<StatusBar
|
|
animated={true}
|
|
backgroundColor={'rgba(0, 0, 0, 0.3)'}
|
|
barStyle={'light-content'}
|
|
translucent={true}
|
|
/>
|
|
<SplashPage>
|
|
<ProgressHook />
|
|
<Debug />
|
|
<RootNavigator />
|
|
</SplashPage>
|
|
</View>
|
|
</MenuProvider>
|
|
</QueryClientProvider>
|
|
)
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
appContainer: {
|
|
flex: 1,
|
|
backgroundColor: colors.gradient.high,
|
|
},
|
|
})
|
|
|
|
export default App
|