-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.js
38 lines (30 loc) · 909 Bytes
/
Home.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
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import Login from './Components/Login'
import Header from './Components/Header'
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
import { useSafeArea } from 'react-native-safe-area-context';
export default function Home({navigation}) {
function onLoginPressed(){
console.log('Pressed')
navigation.navigate('Menu',{screen:'Services'})
}
return (
<SafeAreaView style = {styles.safarea}>
<View style= {styles.container}>
<Header visibility = {false}/>
<Login loginhandler = {onLoginPressed}/>
</View>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
safarea: {
flex: 1,
},
container:{
flex:1,
justifyContent:'center',
backgroundColor:'#969696'
}
});