-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
40 lines (35 loc) · 1.09 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
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import {createNativeStackNavigator} from "@react-navigation/native-stack";
import { Login } from "./screens";
import { initializeApp } from '@firebase/app';
import firebase from "firebase/compat/app";
import "firebase/compat/auth";
const firebaseConfig = {
apiKey: "AIzaSyA0zu28tbv2ShBRkaNmqbH5xU41SNNSkC0",
authDomain: "fir-auth-1f5c0.firebaseapp.com",
projectId: "fir-auth-1f5c0",
storageBucket: "fir-auth-1f5c0.appspot.com",
messagingSenderId: "918131323751",
appId: "1:918131323751:web:781bd31b9dba658ec0f5c2"
}
firebase.initializeApp(firebaseConfig);
const Stack = createNativeStackNavigator()
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator
initialRouteName = 'Login'
>
<Stack.Screen
name = "Login"
component = { Login }
options = {{
headerShown : false
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
}