Files
react-native-chat-ui/docs/themes.md
Alex Demchenko 31bb945a98 Update docs
2021-09-05 13:38:06 +02:00

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.