aboutsummaryrefslogtreecommitdiff
path: root/src/screens/chat/ChatScreen.tsx
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-04-13 15:22:09 -0700
committerShravya Ramesh <shravs1208@gmail.com>2021-04-14 13:38:34 -0700
commitec42d07cee2f5e99acf5034ab2d060a1ec0dfb43 (patch)
tree46ba066392dcb1d856765c42071a1c73064ac9e1 /src/screens/chat/ChatScreen.tsx
parent7d30941c8aba7670f93ebe256967577a6a03f45b (diff)
changed own message theme
Diffstat (limited to 'src/screens/chat/ChatScreen.tsx')
-rw-r--r--src/screens/chat/ChatScreen.tsx17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/screens/chat/ChatScreen.tsx b/src/screens/chat/ChatScreen.tsx
index 18d40f96..ae95cd62 100644
--- a/src/screens/chat/ChatScreen.tsx
+++ b/src/screens/chat/ChatScreen.tsx
@@ -6,9 +6,11 @@ import {SafeAreaView, useSafeAreaInsets} from 'react-native-safe-area-context';
import {
Channel,
Chat,
+ DeepPartial,
MessageInput,
MessageList,
useAttachmentPickerContext,
+ Theme,
} from 'stream-chat-react-native';
import {ChatContext} from '../../App';
import {ChatHeader, ChatInput, TabsGradient} from '../../components';
@@ -29,7 +31,7 @@ const ChatScreen: React.FC<ChatScreenProps> = () => {
const {setTopInset} = useAttachmentPickerContext();
const insets = useSafeAreaInsets();
- const chatTheme = {
+ const chatTheme: DeepPartial<Theme> = {
messageList: {
container: {
backgroundColor: 'white',
@@ -70,7 +72,7 @@ const ChatScreen: React.FC<ChatScreenProps> = () => {
content: {
container: {},
containerInner: {
- backgroundColor: '#DEE6F4',
+ backgroundColor: '#E4F0F2',
borderColor: 'transparent',
borderBottomLeftRadius: 10,
borderTopLeftRadius: 10,
@@ -154,6 +156,17 @@ const styles = StyleSheet.create({
justifyContent: 'center',
alignItems: 'center',
},
+ typingIndicatorContainer: {
+ backgroundColor: '#E4F0F2',
+ width: 88,
+ height: 32,
+ borderRadius: 10,
+ marginBottom: 10,
+ marginLeft: 10,
+ flexDirection: 'row',
+ justifyContent: 'center',
+ alignItems: 'center',
+ },
});
export default ChatScreen;