Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zegocloud/zego-uikit-prebuilt-call-rn

Package Overview
Dependencies
Maintainers
4
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zegocloud/zego-uikit-prebuilt-call-rn

PrebuiltCall is a full-featured call kit that provides a ready-made call invitation, voice/video chat, device detection, etc. You can easily add a voice/video call to your app within 30 minutes.

  • 0.1.21
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
73
decreased by-72.14%
Maintainers
4
Weekly downloads
 
Created
Source

Quick start


Read more from our official website

Integrate the SDK

Import the SDK

Add @zegocloud/zego-uikit-prebuilt-call-rn as dependencies

yarn add @zegocloud/zego-uikit-prebuilt-call-rn 

Add other dependencies

Run the following command to install other dependencies for making sure the @zegocloud/zego-uikit-prebuilt-call-rn can work properly:

yarn add @zegocloud/zego-uikit-rn react-delegate-component zego-express-engine-reactnative

Using the ZegoUIKitPrebuiltCall Component in your project

  • Go to ZEGOCLOUD Admin Console|_blank, get the appID and appSign of your project.
  • Get the userID and userName for connecting the Video Call Kit service.
  • And also get a callID for making a call.
  • userID and callID can only contain numbers, letters, and underlines (_).
  • Users that join the call with the same callID can talk to each other.
// App.js import React, { Component } from 'react'; import { ZegoUIKitPrebuiltCall } from '@zegocloud/zego-uikit-prebuilt-call-rn'; export default function App() { return (
<ZegoUIKitPrebuiltCall appID={Get your app ID from ZEGOCLOUD Admin Console.} appSign='Get your app Sign from ZEGOCLOUD Admin Console.' userID='12345' // userID can only contain numbers, letters, and underlines (_). userName='Oliver' callID='rn12345678' // roomID can only contain numbers, letters, and underlines (_). config={{ //onHangUp: () => {props.navigation.navigate('HomePage')} }} />
); }

Configure your project

  • Android:

Open my_project/android/app/src/main/AndroidManifest.xml file and add the code as follow:

<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
  • iOS:

Open my_project/ios/my_project/Info.plist file and add the code as follow:

<key>NSCameraUsageDescription</key>
<string></string>
<key>NSMicrophoneUsageDescription</key>
<string></string>

Run & Test

  • Run on an iOS device:
yarn android
  • Run on an Android device:
yarn ios

Customize prebuilt UI

Resources

Keywords

FAQs

Package last updated on 05 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc