/
App.js
62 lines (55 loc) · 1.42 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, {Component} from 'react';
import { createStackNavigator, createAppContainer } from 'react-navigation';
import Footertabs from './screens/FooterTabs';
import LoginAnimation from './screens/LoginAnimation';
import TabOne from './screens/TabOne';
import TabTwo from './screens/TabTwo';
import TabThree from './screens/TabThree'
import TabFour from './screens/TabFour'
import Opening from './screens/containers/AuthScreen'
import SplashScreen from 'react-native-splash-screen'
import firebase from 'firebase';
const RootStack = createStackNavigator(
{
Home:LoginAnimation,
Tabs:Footertabs,
One:TabOne,
Two:TabTwo,
Three:TabThree,
Open:Opening,
Four:TabFour
},
{
initialRouteName:'Home'
}
);
const AppContainer = createAppContainer(RootStack);
export default class App extends Component{
static navigationOptions = {
header:null
}
componentDidMount() {
SplashScreen.hide();
firebase.initializeApp({
apiKey: "AIzaSyBhc6tQ4wdGfkVIc9W4kxmM4DFN8zBqM9M",
authDomain: "auth-b4900.firebaseapp.com",
databaseURL: "https://auth-b4900.firebaseio.com",
projectId: "auth-b4900",
storageBucket: "auth-b4900.appspot.com",
messagingSenderId: "177543328852",
appId: "1:177543328852:android:a39393099ff068ab"
});
}
render() {
return (
<AppContainer/>
);
}
}