File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
components/AITypingIndicatorView
contexts/themeContext/utils Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22
3- import { Text , View } from 'react-native' ;
3+ import { StyleSheet , Text , View } from 'react-native' ;
44
55import { Channel } from 'stream-chat' ;
66
@@ -31,15 +31,20 @@ export const AITypingIndicatorView = <
3131
3232 const {
3333 theme : {
34+ aiTypingIndicatorView : { container, text } ,
3435 colors : { black, grey_gainsboro } ,
3536 } ,
3637 } = useTheme ( ) ;
3738
3839 return aiState in allowedStates ? (
39- < View style = { { backgroundColor : grey_gainsboro , paddingHorizontal : 16 , paddingVertical : 18 } } >
40- < Text style = { { color : black } } > { allowedStates [ aiState ] } </ Text >
40+ < View style = { [ styles . container , { backgroundColor : grey_gainsboro } , container ] } >
41+ < Text style = { [ { color : black } , text ] } > { allowedStates [ aiState ] } </ Text >
4142 </ View >
4243 ) : null ;
4344} ;
4445
4546AITypingIndicatorView . displayName = 'AITypingIndicatorView{messageSimple{content}}' ;
47+
48+ const styles = StyleSheet . create ( {
49+ container : { paddingHorizontal : 16 , paddingVertical : 18 } ,
50+ } ) ;
Original file line number Diff line number Diff line change @@ -90,6 +90,10 @@ export type MarkdownStyle = Partial<{
9090} > ;
9191
9292export type Theme = {
93+ aiTypingIndicatorView : {
94+ container : ViewStyle ;
95+ text : TextStyle ;
96+ } ;
9397 attachmentPicker : {
9498 bottomSheetContentContainer : ViewStyle ;
9599 durationText : TextStyle ;
@@ -813,6 +817,10 @@ export type Theme = {
813817} ;
814818
815819export const defaultTheme : Theme = {
820+ aiTypingIndicatorView : {
821+ container : { } ,
822+ text : { } ,
823+ } ,
816824 attachmentPicker : {
817825 bottomSheetContentContainer : { } ,
818826 durationText : { } ,
You can’t perform that action at this time.
0 commit comments