forked from magus/react-native-facebook-login
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.ios.js
More file actions
42 lines (35 loc) · 768 Bytes
/
index.ios.js
File metadata and controls
42 lines (35 loc) · 768 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
var React = require('react');
var ReactNative = require('react-native');
// Make react global
window.React = React;
var {
AppRegistry,
NavigatorIOS,
StyleSheet,
} = ReactNative;
var Login = require('./components/Login');
var LoginMock = require('./components/LoginMock');
var AppEntry = React.createClass({
render: function() {
return (
<NavigatorIOS
style={styles.container}
itemWrapperStyle={styles.allPages}
initialRoute={{
title: 'Login',
component: Login,
}}
/>
);
}
});
var styles = StyleSheet.create({
container: {
flex: 1,
},
allPages: {
backgroundColor: '#EEE',
},
});
AppRegistry.registerComponent('example', () => AppEntry);
module.exports = AppEntry;