-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
39 lines (36 loc) · 935 Bytes
/
App.js
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
import {createStackNavigator} from '@react-navigation/stack';
import HomeScreen from './src/homeScreen';
import AudioScreen from './src/audioScreen';
import {NavigationContainer} from '@react-navigation/native';
import React from 'react';
function App() {
const Stack = createStackNavigator();
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerTitleAlign: 'center',
headerTintColor: 'white',
headerStyle: {
backgroundColor: 'orange',
},
}}>
<Stack.Screen
name="Home"
component={HomeScreen}
options={{
title: 'Music',
}}
/>
<Stack.Screen
name="Audio"
component={AudioScreen}
options={{
title: 'Audio Player',
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;