-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
61 lines (54 loc) · 1.68 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// /**
// * Sample React Native App
// * https://github.com/facebook/react-native
// *
// * @format
// * @flow
// */
import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
} from 'react-native';
import firebase from 'react-native-firebase';
import { Scene, Router, Stack } from 'react-native-router-flux';
import Home from './src/components/Home';
import Event from './src/components/Event';
import Email from './src/components/Email';
import SignUp from './src/components/SignUp';
import Login from './src/components/Login';
export default class App extends React.Component {
componentWillMount() {
const iosConfig = {
clientId: '786413911892-8v8qcgr3k5cnqbdva3agdovno8t4nne6.apps.googleusercontent.com',
appId: '1:786413911892:ios:f301fcfb0b03f779c712c1',
apiKey: 'AIzaSyBwP9XDjYXejHdCvJJgT-DW42Uzyk6i95s',
databaseURL: 'https://evnt-55158.firebaseio.com',
storageBucket: 'evnt-55158.appspot.com',
messagingSenderId: '786413911892',
projectId: 'evnt-55158',
// enable persistence by adding the below flag
persistence: true,
};
const evntApp = firebase.initializeApp(iosConfig, 'evnt');
evntApp.onReady().then((app) => console.log(app));
}
render() {
StatusBar.setBarStyle('dark-content', true);
return (
<Router>
<Stack key="root" hideNavBar="true" duration={0}>
<Scene key="email" component={Email} />
<Scene key="signup" component={SignUp} />
<Scene key="login" component={Login} />
<Scene key="home" component={Home} />
<Scene key="event" component={Event} />
</Stack>
</Router>
);
}
}