diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-08 20:41:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 20:41:54 -0400 |
commit | fb5cca5bd8aff7232c2ab5e01df0e79dddbef504 (patch) | |
tree | 8a74ae256bc826d2338061fdd605db67c1ec350b /src/App.tsx | |
parent | 4cf3bc720ebcc0b16d158caf60fbdf091621c327 (diff) | |
parent | 98a31b59df5b51ea9488220d47bd7d60b3a268b9 (diff) |
Merge pull request #355 from IvanIFChen/tma769-styling-channel-list-screen
[TMA-769] Styling chat list screen
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, |