-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
46 lines (41 loc) · 1.27 KB
/
App.js
File metadata and controls
46 lines (41 loc) · 1.27 KB
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
import { StatusBar } from 'expo-status-bar';
import { useState } from 'react';
import { View, TextInput, StyleSheet, Pressable, Text, SafeAreaView } from "react-native";
import { auth } from "./firebaseConfig.js"
import { signInWithEmailAndPassword } from 'firebase/auth';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import LoginScreen from './screens/LoginScreen'
import HomeScreen from './screens/HomeScreen';
import ChatLogScreen from './screens/ChatLogScreen';
export default function App() {
const Stack = createNativeStackNavigator();
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Login" component={LoginScreen} />
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="ChatLogScreen" component={ChatLogScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
root: {
flex: 1,
justifyContent: "center",
margin: 10,
},
inputContainer: {
backgroundColor: "white",
padding: 10,
marginVertical: 10,
},
input: {},
button: {
backgroundColor: "#256CFF",
padding: 15,
alignItems: "center",
marginVertical: 10,
},
});