Most "add calling to your app" tutorials stop at "the audio connects". Then you still have to build the hard part: the incoming call screen, ringing, the call timer, mute, hang up, "Call declined", and what happens when someone's network drops mid-call.
In this post we'll build a 1:1 voice calling app in React Native where all of that comes ready-made, in about 60 lines of code :
incoming call screen with Answer / Decline
ringing, an in-call screen with a timer, mute and hang up
"Call ended / Declined / Call failed" messages
a "Reconnecting…" state when a phone loses its network for a few seconds
a green "Ongoing call · Tap to return" bar when the user minimizes the call
We'll use RTCExpress , a hosted voice/video/chat SDK I'm building at Devsquare Labs. Signaling, TURN relays and media servers are hosted for you, and the Free plan covers everything here.
1.…