-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathindex.ios.js
49 lines (42 loc) · 1.3 KB
/
index.ios.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
41
42
43
44
45
46
47
48
49
import React, { Component } from 'react';
import Firestack from 'react-native-firestack'
const firestack = new Firestack();
var Buglife = require('react-native-buglife');
const LoginComponent = require('./app/loginComponent')
import {
AppRegistry,
View,
StatusBar,
Navigator
} from 'react-native';
export default class MainNavigator extends Component {
constructor(props) {
super(props);
Buglife.startWithAPIKey("QExxQmIHlxkC52QTdJOTjQtt");
Buglife.setInvocationOptions(Buglife.invocationOptionsScreenshot);
}
componentDidMount() {
firestack.analytics.logEventWithName("launch")
firestack.analytics.logEventWithName("pageView", {
'screen': 'MainNavigator'
})
}
render() {
return (
<View style={{width: "100%", height: "100%"}}>
<StatusBar barStyle="light-content" />
<Navigator
initialRoute={{component: LoginComponent}}
configureScene={(route) => ({
...Navigator.SceneConfigs.HorizontalSwipeJump,
gestures: false
})}
renderScene={(route, navigator) => {
return React.createElement(route.component, { ...this.props, ...route.passProps, navigator, route } );
}}
/>
</View>
);
}
}
AppRegistry.registerComponent('wwdcfamily', () => MainNavigator);