Raheb2034Tec / Rahheep

Development
0 stars 0 forks source link

تطبيق شركة شحن لوجستي #2

Open Raheb2034Tec opened 3 months ago

Raheb2034Tec commented 3 months ago

npx react-native init LogisticsApp cd LogisticsApp

Raheb2034Tec commented 3 months ago

npx react-native init LogisticsApp cd LogisticsApp

npm install @react-navigation/native npm install @react-navigation/stack npm install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view

import * as React from 'react'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; import HomeScreen from './screens/HomeScreen'; import LoginScreen from './screens/LoginScreen'; import ShipmentScreen from './screens/ShipmentScreen';

const Stack = createStackNavigator();

export default function App() { return (

); } import React from 'react'; import { View, Text, TextInput, Button, StyleSheet } from 'react-native';

export default function LoginScreen({ navigation }) { const [username, setUsername] = React.useState(''); const [password, setPassword] = React.useState('');

const handleLogin = () => { // تحقق من بيانات المستخدم navigation.navigate('Home'); };

return (

Login
Raheb2034Tec commented 3 months ago

import React from 'react'; import { View, Text, Button, StyleSheet } from 'react-native';

export default function HomeScreen({ navigation }) { return (

Welcome to Logistics App