-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
57 lines (49 loc) · 1.17 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
/**
* NomniEats
* https://github.com/jpleva91/NomniEats
* @flow
*/
'use strict'
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View,
NavigatorIOS,
TabBarIOS,
} from 'react-native';
import Config from 'react-native-config';
import firebase from 'firebase';
import LoginForm from './components/LoginForm';
import SearchPage from './components/SearchPage';
import RecipeView from './components/RecipeView';
import TabBar from './components/TabBar';
export default class App extends Component<{}> {
componentWillMount() {
firebase.initializeApp({
apiKey: "AIzaSyBE_rUEl_MJbEwG5I99YnLdtV_EzV4HTFY",
authDomain: "nomnieats.firebaseapp.com",
databaseURL: "https://nomnieats.firebaseio.com",
projectId: "nomnieats",
storageBucket: "nomnieats.appspot.com",
messagingSenderId: "281534724298"
});
}
render() {
return (
<NavigatorIOS
style={styles.container}
initialRoute={{
title: 'Login',
component: LoginForm,
}}
navigationBarHidden={true} />
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
});