Skip to content

Commit f99b02f

Browse files
committed
fix: add channel command middleware
1 parent fcf98f9 commit f99b02f

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

examples/SampleApp/src/screens/ChannelScreen.tsx

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { useCallback, useEffect, useState } from 'react';
22
import type {
3-
CustomDataManagerState,
43
LocalMessage,
54
Channel as StreamChatChannel,
65
TextComposerMiddleware,
@@ -15,17 +14,11 @@ import {
1514
useAttachmentPickerContext,
1615
useChannelPreviewDisplayName,
1716
useChatContext,
18-
useMessageComposer,
1917
useTheme,
2018
useTypingString,
2119
AITypingIndicatorView,
22-
AutoCompleteInput,
23-
GiphyLightning,
24-
useStateStore,
25-
CircleClose,
26-
SendButton,
2720
} from 'stream-chat-react-native';
28-
import { Platform, Pressable, StyleSheet, Text, View } from 'react-native';
21+
import { Platform, StyleSheet, View } from 'react-native';
2922
import type { StackNavigationProp } from '@react-navigation/stack';
3023
import { useSafeAreaInsets } from 'react-native-safe-area-context';
3124

@@ -204,20 +197,4 @@ export const ChannelScreen: React.FC<ChannelScreenProps> = ({
204197

205198
const styles = StyleSheet.create({
206199
flex: { flex: 1 },
207-
input: {
208-
flexDirection: 'row',
209-
justifyContent: 'space-between',
210-
},
211-
giphyContainer: {
212-
alignItems: 'center',
213-
borderRadius: 12,
214-
flexDirection: 'row',
215-
marginRight: 8,
216-
paddingHorizontal: 8,
217-
paddingVertical: 4,
218-
},
219-
giphyText: {
220-
fontSize: 12,
221-
fontWeight: 'bold',
222-
},
223200
});

0 commit comments

Comments
 (0)