For AI agents: visit https://docs.livelike.com/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI. Append .md to any documentation page URL to get its markdown version.
Using LLThemeSwitch component, you can switch between light and dark theme StockUI. The component renders a switch icon to toggle light/dark theme.
This component is not rendered in Stock UI by default. You can include LLThemeSwitch by customising chat header of LLChat using HeaderComponent prop
Example usage:
import React from 'react';
import { Text, View } from 'react-native';
import {
LLChat,
LLChatHeaderProps,
LLThemeSwitch,
} from '@livelike/react-native';
function CustomHeader({ title }: LLChatHeaderProps) {
return (
<View>
<Text>{title}</Text>
<LLThemeSwitch />
</View>
);
}
export function MyApp() {
return <LLChat roomId="<Your chat room id>" HeaderComponent={CustomHeader} />;
}