Installation step by step
1. Install the package and peers
shell
npm install @realtimexsco/live-chat-react-native# npm install @realtimexsco/live-chat-react-nativeChat peers (skip any you already have at a compatible version):
shell
npm install \ @react-native-async-storage/async-storage@^3.1.1 \ @react-native-clipboard/clipboard@^1.16.3 \ @react-native-community/netinfo@^12.0.1 \ @react-native-community/push-notification-ios@^1.12.0 \ @react-native-documents/picker@^12.0.1 \ @react-native-firebase/app@^25.0.0 \ @react-native-firebase/messaging@^25.0.0 \ @react-native-masked-view/masked-view@^0.3.2 \ @react-navigation/bottom-tabs@^7.18.13 \ @react-navigation/native@^7.3.13 \ @react-navigation/stack@^7.10.16 \ @shopify/flash-list@^2.3.2 \ react-native-config@^1.6.1 \ react-native-device-info@^15.0.2 \ react-native-gesture-handler@^3.1.0 \ react-native-heic-converter@^1.3.3 \ react-native-image-crop-picker@^0.51.1 \ react-native-keyboard-aware-scroll-view@^0.9.5 \ react-native-permissions@^5.6.0 \ react-native-reanimated@^4.5.2 \ react-native-responsive-screen@^1.4.2 \ react-native-safe-area-context@^5.8.0 \ react-native-screens@^4.15.0 \ react-native-svg@^15.15.5 \ react-native-toast-message@^2.4.0 \ react-native-webview@^14.0.1 \ react-native-worklets@^0.12.0 \ socket.io-client@^4.8.3Calling peers (only if you use calls):
shell
npm install @videosdk.live/react-native-sdk@^0.6.0 @videosdk.live/react-native-incallmanager@^0.1.3Optional native peers:
shell
npm install @notifee/react-native # Android full-screen callsnpm install react-native-callkeep react-native-voip-push-notification # iOS CallKit / PushKit calls2. Native install
shell
cd ios && pod install && cd ..The iOS pod RealtimexLiveChat and the Android library android-screenshare/ are autolinked (declared in the package's react-native.config.js). Then do the per-app native steps in Native configuration.
3. Babel — babel.config.js
react-native-reanimated 4 needs the Worklets Babel plugin, listed last:
javascriptbabel.config.js
// babel.config.jsmodule.exports = { presets: ['module:@react-native/babel-preset'], plugins: ['react-native-worklets/plugin'],};4. Verify install
shell
npm ls react-native # one copygrep RealtimexLiveChat ios/Podfile.lock # iOS pod autolinkedls node_modules/@realtimexsco/live-chat-react-native/src/index.ts5. Configure, wire and run
Create src/configs/chat.config.ts, wire index.js, render ChatProvider + ChatNavigator, then:
shell
npm run ios # or: yarn androidNo .npmrc or private token is needed — the package is on the public npm registry.