forked from sgirvan/fsl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
72 lines (61 loc) · 1.31 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
62
63
64
65
66
67
68
69
70
71
72
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View
} from 'react-native';
import firebase from 'firebase';
import { Login } from './Login';
import { Signup } from './Signup';
import { Routes } from './Routes';
/*
var config = {
apiKey: "AIzaSyBPgko3WSh-2rgjK1a7kSz9w8kClYwVvgo",
authDomain: "mijmffl.firebaseapp.com",
databaseURL: "https://mijmffl.firebaseio.com",
projectId: "mijmffl",
storageBucket: "mijmffl.appspot.com",
messagingSenderId: "485467070702"
};
if(!firebase.apps.length) {
const app = firebase.initializeApp(config);
}
*/
var config = {
apiKey: "AIzaSyA7jvpayAPe8W7mnUSY2utM9puTkScziZc",
authDomain: "mijmfsl.firebaseapp.com",
databaseURL: "https://mijmfsl.firebaseio.com",
projectId: "mijmfsl",
storageBucket: "",
messagingSenderId: "57827792969"
};
if(!firebase.apps.length) {
const app = firebase.initializeApp(config);
}
export default class App extends Component<{}> {
componentWillUnmount() {
firebase.off();
}
render() {
return (
<Routes />
);
}
}
const styles = StyleSheet.create({
container: {
height: '100%',
width: '100%',
},
callout: {
height: 20,
width: 20,
backgroundColor: 'white',
}
});