5-minute overview
- Install the package and its peers, then run
pod installinios/. - Native setup — Android:
android:supportsPictureInPictureonMainActivity, Firebase files and the Google Services plugin. iOS:Info.plistusage strings and background modes, Push Notifications capability,FirebaseApp.configure(). Everything else (permissions, services, notification channels, PiP, VoIP) is autolinked from the package. - Create
src/configs/chat.config.tswithapiUrl,socketUrl,clientIdand the host user'saccessToken. - Wire
index.js— VideoSDKregister(),configurePushNotifications(...)and the background push handlers, beforeAppRegistry.registerComponent. - Render
<ChatProvider config={chatConfig}><ChatNavigator /></ChatProvider>.ChatNavigatorowns the whole chat stack (list → room → info, new chat, groups, search, mentions, calls, notification settings). Omit any option → the package default is used.
tsxsrc/screens/ChatScreen.tsx
// src/screens/ChatScreen.tsximport React from 'react';import {ChatNavigator, ChatProvider} from '@realtimexsco/live-chat-react-native';import {chatConfig} from '../configs/chat.config'; export default function ChatScreen() { return ( <ChatProvider config={chatConfig}> <ChatNavigator /> </ChatProvider> );}Do not pass placeholder components or empty render props for parts you want to keep default — simply leave those keys out.