Quick start — minimum working chat
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> );}With autoConnect (default true), ChatProvider restores a persisted chat session or bootstraps one from accessToken, connects Socket.IO, fetches effective settings and starts push handling. Equivalent boot-time form:
tsxApp.tsx
// App.tsximport {configureChat, ChatProvider, ChatNavigator} from '@realtimexsco/live-chat-react-native';import {chatConfig} from './src/configs/chat.config'; configureChat(chatConfig); // once, at module load export default function App() { return ( <ChatProvider> <ChatNavigator /> </ChatProvider> );}