Repository navigation
Expand file tree
/
Copy pathApp.js
More file actions
44 lines (41 loc) · 1.51 KB
/
Copy pathApp.js
File metadata and controls
44 lines (41 loc) · 1.51 KB
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
import { StyleSheet, SafeAreaView, Text, Pressable, Image, View, Dimensions } from "react-native";
import { useSpotifyAuth } from "./utils";
import { Images, Themes } from "./assets/Themes";
import AuthButton from "./components/AuthButton";
import SongList from "./components/SongList";
import { NavigationContainer } from '@react-navigation/native';
import 'react-native-gesture-handler';
import { createStackNavigator } from '@react-navigation/stack';
import HomeScreen from "./screens/HomeScreen";
import DetailScreen from "./screens/DetailScreen";
import PreviewScreen from "./screens/PreviewScreen";
// import { TouchableWithoutFeedback } from "react-native-web";
const Stack = createStackNavigator();
export default function App({ navigation }) {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="HomeScreen" component={HomeScreen} options={{
headerShown: false,}}/>
<Stack.Screen name="DetailScreen" component={DetailScreen} options = {{
title: 'Song Details',
headerStyle: {
backgroundColor: Themes.colors.background,
},
headerTitleStyle: {
color: 'white',
}
}}/>
<Stack.Screen name="PreviewScreen" component={PreviewScreen} options= {{
title: 'Song Preview',
headerStyle: {
backgroundColor: Themes.colors.background,
},
headerTitleStyle: {
color: 'white',
}
}}/>
</Stack.Navigator>
</NavigationContainer>
);
}