-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
34 lines (30 loc) · 798 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
import {View,Text} from 'react-native';
import React,{Component} from 'react'
import{createStackNavigator, createAppContainer} from 'react-navigation';
import Rankings from './rankings/rankings'
import TeamDeatails from './rankings/team_details'
import Header from '../NBA/header'
const AppNavigator = createStackNavigator(
{
Home: {
screen:Rankings,
navigationOptions:({navigation}) => ({
headerTitle: (
<View style={{flex:1,flexDirection:'row'}}>
<Header navigation={navigation}/>
</View>
)
})
},
Details: {
screen:TeamDeatails,
navigationOptions:{
title:'Team Detail',
}
}
},
{
initialRouteName:'Home',
}
)
export default createAppContainer(AppNavigator);