aboutsummaryrefslogtreecommitdiff
path: root/src/App.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-13 19:53:07 -0400
committerGitHub <noreply@github.com>2021-04-13 19:53:07 -0400
commit3cc0e2e342993ce01490a36a43d99f2ab61ccb4f (patch)
treeb57b61c49571c9e4b6d34c67f2f99c9617ff9d93 /src/App.tsx
parent93837e23a169e6b17432e4e0dd397bcaa140bb5e (diff)
parent3db3ba5fc35930cea99b2a51042446c0c470af47 (diff)
Merge pull request #362 from IvanIFChen/tma784-message-input-camera
[TMA-784] Message input camera
Diffstat (limited to 'src/App.tsx')
-rw-r--r--src/App.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/App.tsx b/src/App.tsx
index b8d64461..8d823e1f 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -18,6 +18,7 @@ import {
LocalResponseType,
LocalUserType,
} from './types';
+import {isIPhoneX} from './utils';
export const ChatContext = React.createContext({} as ChatContextType);
@@ -38,11 +39,11 @@ const App = () => {
*/
<Provider store={store}>
<NavigationContainer ref={navigationRef}>
- <ChatContext.Provider value={{channel, setChannel, chatClient}}>
- <OverlayProvider>
+ <OverlayProvider bottomInset={isIPhoneX() ? 80 : 50}>
+ <ChatContext.Provider value={{channel, setChannel, chatClient}}>
<Routes />
- </OverlayProvider>
- </ChatContext.Provider>
+ </ChatContext.Provider>
+ </OverlayProvider>
</NavigationContainer>
</Provider>
);