-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
74 lines (62 loc) · 1.86 KB
/
Copy pathApp.js
File metadata and controls
74 lines (62 loc) · 1.86 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
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
74
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import {StyleSheet, useColorScheme, Image, View} from 'react-native';
import {Colors} from 'react-native/Libraries/NewAppScreen';
import 'react-native-gesture-handler';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import Header from './components/header';
import PlaylistScreen from './components/screens/playlist';
import LandingScreen from './components/screens/landing';
import LinearGradient from 'react-native-linear-gradient';
const Stack = createStackNavigator();
const App = () => {
const isDarkMode = useColorScheme() === 'dark';
const backgroundStyle = {
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
};
const HeaderTitle = () => (
<View>
<LinearGradient
colors={['#bd8d93', '#72578a', '#213385']}
style={styles.linearGradient}
/>
</View>
);
return (
<NavigationContainer>
{/* <StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} /> */}
{/* <StatusBar barStyle="dark-content" backgroundStyle={backgroundStyle} /> */}
<Header />
<Stack.Navigator
initialRouteName="Home"
headerMode="screen"
screenOptions={{
headerTitle: '',
headerStyle: styles.header,
}}>
<Stack.Screen name="Home" component={LandingScreen} />
<Stack.Screen name="Playlist" component={PlaylistScreen} />
</Stack.Navigator>
</NavigationContainer>
);
};
const styles = StyleSheet.create({
linearGradient: {
alignItems: 'center',
justifyContent: 'center',
// borderRadius: 5,
height: '100%',
width: '100%',
},
header: {
backgroundColor: '#bd8d93',
},
});
export default App;