A React Native application that simulates a real-time delivery tracking system with two roles:
- π Delivery Driver
- π’ Operations Dashboard
Built using Expo, React Navigation, and Context API, with mock data and simulated live tracking.
Open the link on your Android device
Download the APK
Enable installation from unknown sources:
Android 8+: Settings β Apps β Browser β Allow "Install unknown apps"
Older versions: Settings β Security β Enable "Unknown sources"
Install and launch the app π
To build a mini delivery system that demonstrates:
- Order lifecycle management
- Real-time tracking simulation
- Role-based application flow
- Clean UI with structured architecture
This project successfully implements:
- Complete order lifecycle flow
- Real-time location tracking simulation
- Proper start/stop tracking logic
- Accurate timeline updates
- Role-based navigation (Driver & Operations)
This project was developed using the following technologies and concepts:
Used Expo to build and run the application across both Android and Web platforms efficiently without complex native setup.
Implemented stack-based navigation to manage screen transitions between Login, Driver Dashboard, Operations Dashboard, and Order Details.
All components are built using modern functional components for better readability and maintainability.
Used for managing local state such as:
- Form inputs (login)
- UI updates
- Temporary component states
Used for handling side effects such as:
- Initial data loading
- Triggering tracking logic
- Running interval-based location updates
Used to efficiently render lists such as:
- Orders list (Driver & Operations)
- Timeline updates
FlatList ensures better performance compared to traditional loops.
-
Centralized state using Context API
-
Separation of concerns:
- UI β components/screens
- Logic β services
- Data β context
-
Scalable and maintainable architecture
-
Clean and reusable components
- Status-based color system
- Clean card-based layout
- Timeline visualization
- Live tracking indicator
- Responsive design (Web + Android)
| Role | Password | |
|---|---|---|
| Driver | driver@test.com | 123456 |
| Operations | ops@test.com | 123456 |
- Login as Driver
- View open orders
- Accept order
- Update order status:
Accepted β Picked Up β In Transit β Delivered
-
After Picked Up:
- π Tracking starts
- π Location updates every 5 seconds
-
After Delivered:
- π Tracking stops
- π Last location is saved
-
Login as Operations
-
View all orders
-
Monitor:
- Status updates
- Driver location
- Timeline
π Operations acts as a monitoring dashboard
Tracking is simulated using:
const mockRoute = [
{ latitude: 17.385044, longitude: 78.486671 },
{ latitude: 17.395044, longitude: 78.496671 },
{ latitude: 17.405044, longitude: 78.506671 },
{ latitude: 17.415044, longitude: 78.516671 }
];- Starts after Picked Up
- Updates every 5 seconds
- Stops after Delivered
- Final location remains visible
Managed using:
OrderContext.js
Handles:
- Orders state
- Status updates
- Location updates
- Tracking control
Located in:
services/
orderService.jsβ order updatestrackingService.jsβ tracking logic
src/
β
βββ components/ # Reusable UI components
βββ context/ # Global state management
βββ navigation/ # Navigation setup
βββ screens/ # App screens
βββ services/ # Business logic
βββ styles/ # Styling
βββ utils/ # Mock data
npm installnpm run webnpm run androidRequires emulator or Expo Go
https://drive.google.com/file/d/17hCIMyG3gIHDhN3-1rQN6ANT5xkzasvY/view?usp=sharing
---
## β¨ Key Features
* Role-based login system
* Order lifecycle management
* Real-time tracking simulation
* Timeline tracking
* Cross-platform support
* Clean UI and navigation
---
## β οΈ Notes
* Uses mock data only
* Tracking is simulated (not real GPS)
* Designed for technical evaluation
---
## π¨βπ» Author
Sai Sudheer
---
## π Repository
```text id="https://github.com/saisudheer-18/react-native-delivery-tracker"
This project demonstrates:
- Strong understanding of React Native
- Real-time simulation logic
- Scalable architecture
- Clean UI/UX practices
β¨ Built as a mini real-world delivery tracking system.