Project config file
Create src/configs/chat.config.ts — credentials and app-wide options only — and import it everywhere you render chat:
typescriptsrc/configs/chat.config.ts
// src/configs/chat.config.tsimport type {ConfigureChatOptions} from '@realtimexsco/live-chat-react-native';import {getHostAccessToken} from '../auth/session'; // your app's token getter export const chatConfig: ConfigureChatOptions = { apiUrl: 'https://realtimex.softwareco.com/api/v1', socketUrl: 'https://realtimex.softwareco.com', // optional — derived from apiUrl clientId: 'YOUR_CLIENT_ID', accessToken: () => getHostAccessToken(), // or a static string callUri: 'https://realtimex.softwareco.com/api/v2', // calls + push theme: {colorMode: 'light', accent: '#6366f1'}, onSessionEnd: ({reason}) => { // the server signed the user out — go to your login screen },};