-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
63 lines (56 loc) · 2.86 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
62
63
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import HomeScreen from "./src/screen/PropertyBrokerage/HomeScreen";
import Casa from "./src/screen/PropertyBrokerage/AddProperty";
import DeleteP from "./src/screen/PropertyBrokerage/deleteP";
import CRUD from "./src/screen/PropertyBrokerage/property";
import UpdateProp from "./src/screen/PropertyBrokerage/updateProp";
import { Dimensions } from "react-native";
import { AppRegistry } from "react-native";
import { name as appName } from "./app.json";
import Homemaps from "./src/screen/RealState/Home";
import MenuButton from "./src/screen/RealState/Menu";
import Add from "./src/screen/RealState/Addproject";
import Addproject from "./src/screen/RealState/Addproject";
import { Firestore } from "firebase/app";
import ListProjet from "./src/screen/RealState/Listprojet";
import Loggin from "./src/screen/Loggin/Homelogg";
import Register from "./src/screen/Loggin/Register";
import Form_np from "./src/screen/Loggin/Form_np";
import Verification from "./src/screen/Loggin/Verification";
import Singin from "./src/screen/Loggin/Singin";
import Form_inmo from "./src/screen/Loggin/Form_Inmo";
import Form_co from "./src/screen/Loggin/Form_co";
import Form_ac from "./src/screen/Loggin/Form_ac";
const Stack = createNativeStackNavigator();
const { width, height } = Dimensions.get("window");
const guidelineBaseWidth = 375;
const guidelineBaseHeight = 812;
const horizontalScale = (size) => (width / guidelineBaseWidth) * size;
const verticalScale = (size) => (height / guidelineBaseHeight) * size;
const moderateScale = (size, factor = 0.5) =>
size + (horizontalScale(size) - size) * factor;
export { horizontalScale, verticalScale, moderateScale };
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen name="Loggin" component={Loggin} />
<Stack.Screen name="Register" component={Register}/>
<Stack.Screen name="Form_np" component={Form_np} />
<Stack.Screen name="Inmo" component={Form_inmo} />
<Stack.Screen name="Co" component={Form_co} />
<Stack.Screen name="Ac" component={Form_ac} />
<Stack.Screen name = "Singin"component = {Singin}/>
<Stack.Screen name="Verification" component={Verification} />
<Stack.Screen name="Home" component={Homemaps} />
<Stack.Screen name="Add" component={Addproject} />
<Stack.Screen name="CRUD" component={CRUD} />
<Stack.Screen name="Pllist" component={ListProjet} />
<Stack.Screen name="DeleteP" component={DeleteP} />
<Stack.Screen name="UpdateProp" component={UpdateProp} />
</Stack.Navigator>
</NavigationContainer>
);
}