diff options
Diffstat (limited to 'src/App.web.tsx')
-rw-r--r-- | src/App.web.tsx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx index 018ac4003..838b81ee2 100644 --- a/src/App.web.tsx +++ b/src/App.web.tsx @@ -1,4 +1,6 @@ import React, {useState, useEffect} from 'react' +import {RootSiblingParent} from 'react-native-root-siblings' +import {GestureHandlerRootView} from 'react-native-gesture-handler' import * as view from './view/index' import {RootStoreModel, setupState, RootStoreProvider} from './state' import * as Routes from './view/routes' @@ -20,9 +22,13 @@ function App() { } return ( - <RootStoreProvider value={rootStore}> - <Routes.Root /> - </RootStoreProvider> + <GestureHandlerRootView style={{flex: 1}}> + <RootSiblingParent> + <RootStoreProvider value={rootStore}> + <Routes.Root /> + </RootStoreProvider> + </RootSiblingParent> + </GestureHandlerRootView> ) } |