Uber Clone with React Native | Live Tracking + Background Location using Sockets

5.0(7 reviews)
Top Rated๐Ÿ’š Loved by learners
โ‚น499
React Native
Node.js
๐ŸŽ Offers Available

Description

This is a full-stack Uber clone app built with React Native. It includes essential features like live map integration, real-time routing, location search, and nearby places using real data via REST APIs.

The project comes with a complete backend folder and Swagger API documentation for easy testing. It also supports dark mode, RTL layouts, and multiple languages. After purchase, youโ€™ll get free lifetime updates and access to the latest version whenever new features are added.

Documentation

๐Ÿš– Uber Clone - React Native App

A fully functional Uber-like ride booking app built with React Native. This app supports multilingual features (LTR/RTL), light/dark themes, and real-time ride tracking with Google Maps. Built on a scalable boilerplate foundation (rn_boilerplate).


๐Ÿš€ How to Run

Follow these steps to set up and run the app:

๐Ÿ—‚๏ธ Step 1: Unzip the Project

Unzip the downloaded folder.

๐Ÿ“‚ Step 2: Navigate to the Project Directory

cd uberclone

๐Ÿ“ฆ Step 3: Install Dependencies

npm install

โ–ถ๏ธ Step 4: Start Metro Bundler

npm start

๐Ÿ“ฑ Step 5: Run on Android

npm run android

๐ŸŽ Step 6: Run on iOS

npm run ios

๐Ÿ”‘ Google Maps API Setup

To enable maps:

โœ… 1. Add your Google Maps API Key

Edit the following file:

// src/config/keys.ts
export const GOOGLE_MAP_API_KEY = 'PASTE_YOUR_API_KEY_HERE';

โœ… 2. Android Setup

Add this in android/app/src/main/AndroidManifest.xml:

<meta-data
  android:name="com.google.android.geo.API_KEY"
  android:value="PASTE_YOUR_API_KEY_HERE"/>

โœ… 3. iOS Setup

In ios/rn_boilerplate/AppDelegate.swift, inside application(...) method:

GMSServices.provideAPIKey("PASTE_YOUR_API_KEY_HERE")

๐Ÿ”ง Backend Setup

๐Ÿ“ Step 1: Navigate to Backend Folder

cd backend

๐Ÿ“ฆ Step 2: Install Backend Dependencies

npm install

โš™๏ธ Step 3: Start the Backend Server

npm run dev

๐Ÿ›‘ Important

Make sure MongoDB is installed and running locally before starting the backend server.

๐Ÿ‘‰ Download MongoDB Community Edition

๐Ÿ› ๏ธ Features

  • ๐ŸŒ™ Light/Dark Mode toggle
  • ๐ŸŒ Language support (English โ†” Arabic)
  • ๐Ÿ“ Google Maps live tracking
  • ๐Ÿงพ Ride summary & trip history
  • ๐Ÿ‘ค User profile with logout
  • ๐Ÿš˜ Vehicle and driver details
  • ๐Ÿ” Navigation using React Navigation
  • ๐Ÿ“ก Real-time communication via Socket.io
  • ๐Ÿ“ฆ Background location tracking using react native background geolocation

๐Ÿ“ฆ Tech Stack

  • React Native
  • React Navigation
  • Redux Toolkit
  • i18next (localization)
  • Google Maps SDK
  • TypeScript
  • Node.js
  • Express.js
  • Swagger (API documentation)

๐Ÿ“ Folder Structure (Modular)

uberclone/
โ”œโ”€โ”€ App.tsx                # App entry point
โ”œโ”€โ”€ index.js               # Registers root component
โ”œโ”€โ”€ app.json               # App configuration
โ”œโ”€โ”€ package.json           # Dependencies & scripts
โ”œโ”€โ”€ babel.config.js        # Babel config
โ”œโ”€โ”€ metro.config.js        # Metro bundler config
โ”œโ”€โ”€ tsconfig.json          # TypeScript config
โ”œโ”€โ”€ yarn.lock              # Yarn lockfile
โ”œโ”€โ”€ .eslintrc.js           # ESLint config
โ”œโ”€โ”€ .prettierrc.js         # Prettier config
โ”œโ”€โ”€ .gitignore             # Git ignored files
โ”œโ”€โ”€ /android               # Android native files
โ”œโ”€โ”€ /ios                   # iOS native files
โ”œโ”€โ”€ /assets                # Global static assets
โ”œโ”€โ”€ /backend                   # Backend (Node.js + TypeScript)
โ”‚   โ”œโ”€โ”€ /src
โ”‚   โ”‚   โ”œโ”€โ”€ /api               # API routes
โ”‚   โ”‚   โ”œโ”€โ”€ /config            # DB and app config
โ”‚   โ”‚   โ”œโ”€โ”€ /socket            # WebSocket (Socket.io) logic
โ”‚   โ”‚   โ”œโ”€โ”€ /types             # TypeScript interfaces/types
โ”‚   โ”‚   โ””โ”€โ”€ index.ts           # Main server entry point
โ”‚   โ”œโ”€โ”€ .env                   # Environment variables
โ”‚   โ”œโ”€โ”€ package.json           # Backend dependencies & scripts
โ”‚   โ”œโ”€โ”€ package-lock.json
โ”‚   โ””โ”€โ”€ tsconfig.json          # TypeScript config
โ”œโ”€โ”€ /src                   # Main source code
โ”‚   โ”œโ”€โ”€ /assets            # Fonts, Images
โ”‚   โ”œโ”€โ”€ /components        # Reusable UI components
โ”‚   โ”œโ”€โ”€ /config            # App-level config files
โ”‚   โ”œโ”€โ”€ /constants         # App-wide constants
โ”‚   โ”œโ”€โ”€ /context           # React contexts
โ”‚   โ”œโ”€โ”€ /hooks             # Custom hooks
โ”‚   โ”œโ”€โ”€ /lang              # Localization (en.json, ar.json)
โ”‚   โ”œโ”€โ”€ /models            # Data models/interfaces
โ”‚   โ”œโ”€โ”€ /navigation        # Stack & tab navigators
โ”‚   โ”œโ”€โ”€ /redux             # Redux store, actions, reducers
โ”‚   โ”œโ”€โ”€ /screens           # UI screens (Home, Profile, etc.)
โ”‚   โ”œโ”€โ”€ /styles            # Global styles/themes
โ”‚   โ”œโ”€โ”€ /typings           # TypeScript types
โ”‚   โ””โ”€โ”€ /utils             # Utility functions

๐Ÿ“„ License

MIT License

What our users say

No reviews yet. Be the first to review this module!

Module Information

Downloads
Released
License
297
2 months ago
MIT

Live Preview

View Live Demo

Tech Stack

Technologies used in this module

React Native
Node.js

Support

Home
Toolbox
ProblemsSign InSign Up