diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-08 18:42:28 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-04-08 18:42:28 -0400 |
commit | fab86f9b874524a4beabb3c45a9e59e8b00ca495 (patch) | |
tree | 8ab36bc222ac9f26c7c6ec57ac0bf8dc1bf6ed57 /src/App.tsx | |
parent | bb16e95e15f6ea9b8941cae764570bdf7c0fdb59 (diff) |
added chat header, created isMember util, fixed KB padding issue
Diffstat (limited to 'src/App.tsx')
-rw-r--r-- | src/App.tsx | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/App.tsx b/src/App.tsx index 9510c193..b8d64461 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,13 +1,14 @@ import {NavigationContainer} from '@react-navigation/native'; import React, {useState} from 'react'; import {Provider} from 'react-redux'; -import {Channel as ChannelType, StreamChat} from 'stream-chat'; +import {StreamChat} from 'stream-chat'; import {OverlayProvider} from 'stream-chat-react-native'; import {STREAM_CHAT_API} from './constants'; import {navigationRef} from './RootNavigation'; import Routes from './routes'; import store from './store/configureStore'; import { + ChannelGroupedType, ChatContextType, LocalAttachmentType, LocalChannelType, @@ -21,17 +22,7 @@ import { export const ChatContext = React.createContext({} as ChatContextType); const App = () => { - const [channel, setChannel] = useState< - ChannelType< - LocalAttachmentType, - LocalChannelType, - LocalCommandType, - LocalEventType, - LocalMessageType, - LocalResponseType, - LocalUserType - > - >(); + const [channel, setChannel] = useState<ChannelGroupedType>(); const chatClient = StreamChat.getInstance< LocalAttachmentType, LocalChannelType, |