LocationTrackingApp is a React Native application designed for real-time location tracking with background location refresh and a Socket.IO connection to the server. This app utilizes various libraries such as "@react-native-community/geolocation", "react-native-background-timer", "react-native-maps", "react-native-maps-directions", and "socket.io-client" to provide a seamless and efficient location tracking experience.
Make sure you have Node.js and npm installed on your machine.
-
Clone the repository:
git clone https://github.com/asfaqehussain/LocationTrackingApp
-
Navigate to the project directory:
cd locationtrackingapp
-
Install dependencies:
npm install
Before running the app, make sure to configure the necessary settings.
-
Open the
src/SocketClient
file. -
Update the Socket.IO client file.
-
Update any additional configuration parameters based on your requirements.
To run the app on a connected device or emulator, use the following command:
npx react-native run-android # For Android
# or
npx react-native run-ios # For iOS
The app leverages the "@react-native-community/geolocation" and "react-native-background-timer" libraries for background location tracking. Ensure that the necessary permissions are granted for location services on the device.
The app incorporates the "react-native-maps" and "react-native-maps-directions" libraries for displaying maps and directions. Make sure to follow the documentation for these libraries for any additional setup.
- "@react-native-community/geolocation": "^3.1.0"
- "react-native": "0.71.11"
- "react-native-background-timer": "^2.4.1"
- "react-native-maps": "^1.8.0"
- "react-native-maps-directions": "^1.9.0"
- "socket.io-client": "^4.7.2"
Happy tracking! ๐๐