UNPKG

softchatjs-react-native

Version:

React native UI SDK for softchatjs-core. Create a free account at: https://www.softchatjs.com

24 lines (21 loc) 685 B
import React from 'react'; import { ChatTheme } from '../types.js'; import ChatClient from 'softchatjs-core'; import 'react-native'; declare function useConfig(): Omit<ChatProvider, "children"> & { client: ChatClient | null; }; type ChatProvider = { children: JSX.Element; theme?: ChatTheme; fontFamily: string | undefined; /** * Multiplier to adjust the font size dynamically. * A value of 1 keeps the default size, while values like 0.5 or 1.5 scale it down or up. */ fontScale?: number; }; declare function ChatProvider(props: ChatProvider & { client: ChatClient | null; }): React.JSX.Element; export { ChatProvider as default, useConfig };