-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.js
44 lines (37 loc) · 2.1 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
import * as React from 'react';
import Navbar from './src/components/Navbar';
import { I18nManager } from "react-native";
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import LoginScreen from './src/pages/LoginScreen';
import RegisterBusinessScreen from './src/pages/RegisterBusinessScreen';
import RegisterClientScreen from './src/pages/RegisterClientScreen';
import SearchScreen from './src/pages/SearchScreen';
import ResultScreen from './src/pages/ResultScreen';
import { NavigationContainer } from '@react-navigation/native';
import BusinessPage from "./src/pages/BusinessPage";
import BookAppointmentScreen from "./src/pages/BookAppointmentScreen";
import Toast from 'react-native-toast-message';
import NavScreen from "./src/pages/NavScreen";
// always RTL
I18nManager.forceRTL(true);
I18nManager.allowRTL(true);
const App = () => {
const Stack = createNativeStackNavigator();
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="LoginScreen">
<Stack.Screen name="Navbar" component={Navbar} options={{ headerShown: false }} />
<Stack.Screen name="LoginScreen" component={LoginScreen} options={{ title: 'התחברות' }} />
<Stack.Screen name="RegisterBusinessScreen" component={RegisterBusinessScreen} options={{ title: 'הרשמה לעסק' }} />
<Stack.Screen name="RegisterClientScreen" component={RegisterClientScreen} options={{ title: 'הרשמה' }} />
<Stack.Screen name="SearchScreen" component={SearchScreen} options={{ title: 'חיפוש' }} />
<Stack.Screen name="ResultScreen" component={ResultScreen} options={{ title: 'תוצאות' }} />
<Stack.Screen name="BusinessPage" component={BusinessPage} options={{ title: 'מסך עסק' }} />
<Stack.Screen name="BookAppointmentScreen" component={BookAppointmentScreen} options={{ title: 'קביעת תור' }} />
<Stack.Screen name="NavScreen" component={NavScreen} options={{ title: 'מסך הרשמה' }} />
</Stack.Navigator>
<Toast position='bottom' visibilityTime={2000} />
</NavigationContainer>
);
};
export default App;