Integration
First, make sure that you’ve correctly integrated the UI Kit library into your project. If you haven’t done this yet or are facing difficulties, refer to our Getting Started guide. This guide will walk you through a step-by-step process of integrating our UI Kit into your React Native project. Once you’ve successfully integrated the UI Kit, the next step is to add the CometChat Calls SDK to your project. This is necessary to enable the calling features in the UI Kit. Here’s how you do it:- Bash
- iOS
- Android
Add necessary permissions
Android:
Go to AndroidManifest.xml located in the react-native/app/src/main of your React Native project and add the following permissions:- AndroidManifest.xml
iOS:
Open Info.plist located in the ios/{appname} of your React Native project and add the following entries:- info.plist
Setup minimum Android and iOS versions
For Android go to app-level build.gradle and change minSdkVersion to 24 and the targetSdkVersion and compileSdkVersion to 33.- Gradle
- Podfile
Add the Call Listeners
In addition to CallButtons, the Calls UI Kit offers fully functional UI components for handling Incoming, Outgoing, and Ongoing calls. To receive call events in your desired component or screen, you must register a call listener using the addCallListener() method. The onIncomingCallReceived() event is triggered whenever an incoming call is received.- Bash