@@ -3,10 +3,6 @@ import { I18nManager, StyleSheet, TextInput, TextInputProps } from 'react-native
33
44import throttle from 'lodash/throttle' ;
55
6- import {
7- ChannelContextValue ,
8- useChannelContext ,
9- } from '../../contexts/channelContext/ChannelContext' ;
106import {
117 MessageInputContextValue ,
128 useMessageInputContext ,
@@ -53,22 +49,22 @@ const isCommand = (text: string) => text[0] === '/' && text.split(' ').length <=
5349
5450type AutoCompleteInputPropsWithContext <
5551 StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics ,
56- > = Pick < ChannelContextValue < StreamChatGenerics > , 'giphyEnabled' > &
57- Pick <
58- MessageInputContextValue < StreamChatGenerics > ,
59- | 'additionalTextInputProps '
60- | 'autoCompleteSuggestionsLimit '
61- | 'giphyActive '
62- | 'maxMessageLength'
63- | 'mentionAllAppUsersEnabled'
64- | 'mentionAllAppUsersQuery'
65- | 'numberOfLines'
66- | 'onChange'
67- | 'setGiphyActive'
68- | 'setInputBoxRef'
69- | 'text'
70- | 'triggerSettings'
71- > &
52+ > = Pick <
53+ MessageInputContextValue < StreamChatGenerics > ,
54+ | 'additionalTextInputProps'
55+ | 'autoCompleteSuggestionsLimit '
56+ | 'giphyActive '
57+ | 'giphyEnabled '
58+ | 'maxMessageLength'
59+ | 'mentionAllAppUsersEnabled'
60+ | 'mentionAllAppUsersQuery'
61+ | 'numberOfLines'
62+ | 'onChange'
63+ | 'setGiphyActive'
64+ | 'setInputBoxRef'
65+ | 'text'
66+ | 'triggerSettings'
67+ > &
7268 Pick <
7369 SuggestionsContextValue < StreamChatGenerics > ,
7470 'closeSuggestions' | 'openSuggestions' | 'updateSuggestions'
@@ -484,8 +480,8 @@ export const AutoCompleteInput = <
484480> (
485481 props : AutoCompleteInputProps < StreamChatGenerics > ,
486482) => {
487- const { giphyEnabled } = useChannelContext < StreamChatGenerics > ( ) ;
488483 const {
484+ giphyEnabled,
489485 additionalTextInputProps,
490486 autoCompleteSuggestionsLimit,
491487 giphyActive,
0 commit comments