Menu

Voice calling in React Native with a ready-made call screen (about 60 lines of code)
📰

Voice calling in React Native with a ready-made call screen (about 60 lines of code)

DEV Community: reactnative·DevSquare·3 days ago
#axR3xQF2
#devtoreactnative#devto#dev#call#react
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.