NearShare is a React Native-based Android/iOS application that enables real-time device discovery, peer-to-peer chatting, and file sharing over the same local network. Once two devices connect, a secure isolated communication area is created to exchange messages or share files seamlessly.
- 📡 Device Discovery on the same Wi-Fi network
- 🔒 Isolated Communication Channel between two connected devices
- 💬 Instant Messaging support
- 📁 File Sharing (images, documents, etc.)
- 📱 Works on both Android and iOS
- Node.js (Recommended: v16+)
- npm or yarn
- React Native CLI
- Android Studio (for Android development)
- Xcode (for iOS development)
- USB Debugging enabled (for physical device testing)
- Developer Mode enabled on your Android/iOS device
- Clone the repository:
git clone https://github.com/your-username/NearShare.git
cd NearShare- Install dependencies:
npm install
# or
yarn install- Ensure USB Debugging and Developer Options are enabled on your Android device.
- Connect your device via USB.
- Confirm the device is listed with:
adb devicesnpm startnpm run androidOR if using a specific device ID:
npx react-native run-android --deviceId {your_device_id}Requires Xcode and macOS.
cd ios
pod install
cd ..
npx react-native run-ios- Make sure both devices are connected to the same Wi-Fi network.
- Launch the NearShare app on both devices.
- Wait for automatic device discovery.
- Select a device to initiate connection.
- Start chatting and sharing files instantly.
NearShare/
├── android/
├── ios/
├── context/
├── fileSharing/
├── providers/
├── screens/
├── utils/
├── types/
├── App.tsx
├── package.json
└── README.md
Contributions are welcome! Please fork the repo and submit a pull request.
This project is licensed under the MIT License.