forked from simtlix/react-native-flickr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
40 lines (37 loc) · 1.12 KB
/
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
40
import 'react-native-gesture-handler';
import React from 'react';
import AlbumList from './components/AlbumList';
import PhotoList from './components/PhotoList';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import Icon from 'react-native-vector-icons/FontAwesome';
import { HeaderBackButton } from '@react-navigation/stack';
const Stack = createStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="albumList"
component={AlbumList}
options={{
title: 'Albums',
headerLeft: () => (
<Icon name="music" style={{marginLeft:10}} size={30} color="rgb(0, 122, 255)" />
),
}}
/>
<Stack.Screen
name="photoList"
component={PhotoList}
options={{
title: 'Photos',
headerLeft: () => (
<Icon name="camera" style={{marginLeft:10}} size={30} color="rgb(0, 122, 255)" />
),
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
}