Repository navigation
v2.0.0 — Full PeerJS API on native WebRTC
First stable release of the v2 line. react-native-peer now exposes the
complete PeerJS 1.5.5 API running on React Native's native WebRTC engine
via react-native-webrtc.
Highlights
- 🔌 Same PeerJS API — wraps PeerJS
1.5.5; existing PeerJS code and the
official docs apply directly. - 💬 Data connections — send/receive JSON, strings, and binary data.
- 🎥 Media connections — peer-to-peer video and audio calls.
- 📱 iOS & Android — native WebRTC through
react-native-webrtc. - 🧩 TypeScript types re-exported from PeerJS.
⚠️ Breaking changes (from 1.x)
- New required peer dependency:
react-native-webrtc>= 118must be installed and configured. - Minimum
react-native>= 0.71. - Not compatible with Expo Go — use a development build.
Installation
npm install react-native-peer react-native-webrtcSee the README
Docs
- Data connections, video/audio calls, ICE server config, and self-hosted
PeerServer guides are all in the rewritten README.
What's Changed
- release: v2.0.0-beta.1 — upgrade peerjs to 1.5.5 and migrate to Parcel 2 by @pushpender-singh-ap in #2
- docs: overhaul README and release v2.0.0 by @pushpender-singh-ap in #3
New Contributors
- @pushpender-singh-ap made their first contribution in #2
Full Changelog: 1.1.0...2.0.0