forked from hugohua/react-native-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
49 lines (35 loc) · 745 Bytes
/
App.js
File metadata and controls
49 lines (35 loc) · 745 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
/**
* Tmall 3c APP
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var Home = require('./Home');
var {
// Image,
AppRegistry,
StyleSheet,
ScrollView,
TabBarIOS,
NavigatorIOS,
// Text,
View,
} = React;
var App = React.createClass({
render() {
// return(
// <Home />
// );
return (
<NavigatorIOS
style={{flex : 1,backgroundColor: '#000000'}}
tintColor='#cccccc'
barTintColor='#cccccc'
initialRoute={{
title: '天猫电器城',
component: Home,
}}/>
);
}
});
AppRegistry.registerComponent('App', () => App);