-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
73 lines (35 loc) · 913 Bytes
/
App.js
File metadata and controls
73 lines (35 loc) · 913 Bytes
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
/**-------导入外部的组件类---------**/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
} from 'react-native';
import VideoDetail from './Component/VideoDetail/VideoDetail.js';
import Channel from './Component/Channel/Channel.js';
import ChannelDetail from './Component/Channel/ChannelDetail.js';
import { StackNavigator } from 'react-navigation';
import Main from './Component/Main/Main'
// global.console = {
// info: () => {},
// log: () => {},
// warn: () => {},
// error: () => {},
// };
const App = StackNavigator({
Home: { screen: Main },
VideoDetail:{screen:VideoDetail},
Channel:{screen:Channel},
ChannelDetail:{screen:ChannelDetail},
},
{
headerMode:'none'
}
);
export default App