diff options
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r-- | src/App.native.tsx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index ffeb7d5fc..4309fa3c3 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -1,5 +1,7 @@ import 'react-native-url-polyfill/auto' import React, {useState, useEffect} from 'react' +import {RootSiblingParent} from 'react-native-root-siblings' +import {GestureHandlerRootView} from 'react-native-gesture-handler' import {whenWebCrypto} from './platform/polyfills.native' import * as view from './view/index' import {RootStoreModel, setupState, RootStoreProvider} from './state' @@ -26,9 +28,13 @@ function App() { } return ( - <RootStoreProvider value={rootStore}> - <Routes.Root /> - </RootStoreProvider> + <GestureHandlerRootView style={{flex: 1}}> + <RootSiblingParent> + <RootStoreProvider value={rootStore}> + <Routes.Root /> + </RootStoreProvider> + </RootSiblingParent> + </GestureHandlerRootView> ) } |