aboutsummaryrefslogtreecommitdiff
path: root/src/App.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-12 17:28:38 -0400
committerIvan Chen <ivan@tagg.id>2021-04-12 17:28:38 -0400
commit2d83d11558fd19c18fba4042c94657c3ef9f0bb5 (patch)
tree84e3b88ea51d7c456301097f07aebebc0473745b /src/App.tsx
parent007c2e728c152aa2b038d3e30ce637960189cf25 (diff)
added icons, fixed picker almost
Diffstat (limited to 'src/App.tsx')
-rw-r--r--src/App.tsx10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/App.tsx b/src/App.tsx
index 217f0627..8d823e1f 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -2,6 +2,7 @@ import {NavigationContainer} from '@react-navigation/native';
import React, {useState} from 'react';
import {Provider} from 'react-redux';
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';
@@ -17,6 +18,7 @@ import {
LocalResponseType,
LocalUserType,
} from './types';
+import {isIPhoneX} from './utils';
export const ChatContext = React.createContext({} as ChatContextType);
@@ -37,9 +39,11 @@ const App = () => {
*/
<Provider store={store}>
<NavigationContainer ref={navigationRef}>
- <ChatContext.Provider value={{channel, setChannel, chatClient}}>
- <Routes />
- </ChatContext.Provider>
+ <OverlayProvider bottomInset={isIPhoneX() ? 80 : 50}>
+ <ChatContext.Provider value={{channel, setChannel, chatClient}}>
+ <Routes />
+ </ChatContext.Provider>
+ </OverlayProvider>
</NavigationContainer>
</Provider>
);