mirror of
https://github.com/zhigang1992/react-native-chat-ui.git
synced 2026-01-12 22:50:15 +08:00
712 B
712 B
id, title
| id | title |
|---|---|
| themes | Themes |
You can override anything from some defined theme or create a new one from scratch. See the default theme implementation here. To override theme partially, destructure any defined theme and change what is needed, like on this example:
import { Chat, defaultTheme } from '@flyerhq/react-native-chat-ui'
<Chat
theme={{
...defaultTheme,
colors: { ...defaultTheme.colors, inputBackground: 'red' },
}}
/>
If you created a theme from scratch just pass it to the theme prop. We also provide darkTheme implementation, you can import it from the library and pass to the theme prop.