-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
73 lines (68 loc) · 2.33 KB
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import {View, Text, SafeAreaView} from 'react-native';
import React from 'react';
import {PaperProvider} from 'react-native-paper';
import TabNavigation from './src/navigation/TabNavigation';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import Routes from './src/navigation/Routes';
import TrackPlayer from 'react-native-track-player';
import {AudioProvider} from './src/context/AudioContext';
import Home from './src/screens/home';
import Login from './src/screens/login';
import PodcastDetails from './src/screens/podcastDetails';
import PodcastInformation from './src/components/podcastInformation';
import EpisodePlayer from './src/components/episodePlayer';
const Stack = createStackNavigator();
export default function App() {
return (
<SafeAreaView style={{flex: 1}}>
<AudioProvider>
<NavigationContainer>
<PaperProvider>
<Stack.Navigator initialRouteName={Routes.LOGIN}>
<Stack.Screen
name={Routes.TABNAVIGATOR}
component={TabNavigation}
options={{
headerShown: false,
}}
/>
{/* LOGIN Screen */}
<Stack.Screen
name={Routes.LOGIN}
component={Login}
options={{
headerShown: false,
}}
/>
{/* PODCASTDETAILS Screen */}
<Stack.Screen
name={Routes.PODCASTDETAILS}
component={PodcastDetails}
options={{
headerShown: false,
}}
/>
{/* PodcastInformation Screen */}
<Stack.Screen
name={Routes.PODCASTINFORMATION}
component={PodcastInformation}
options={{
headerShown: false,
}}
/>
{/* EpisodePlayer Screen */}
<Stack.Screen
name={Routes.EPISODEPLAYER}
component={EpisodePlayer}
options={{
headerShown: false,
}}
/>
</Stack.Navigator>
</PaperProvider>
</NavigationContainer>
</AudioProvider>
</SafeAreaView>
);
}