feat(app): wrap root in GestureHandlerRootView for gesture support
This commit is contained in:
@@ -2,6 +2,7 @@ import "./global.css";
|
||||
import "./src/i18n";
|
||||
import { StatusBar } from "expo-status-bar";
|
||||
import { NavigationContainer } from "@react-navigation/native";
|
||||
import { GestureHandlerRootView } from "react-native-gesture-handler";
|
||||
import { RootNavigator } from "./src/navigation/RootNavigator";
|
||||
import { DatabaseProvider } from "./src/providers/DatabaseProvider";
|
||||
import { SettingsProvider } from "./src/providers/WatchProvider";
|
||||
@@ -27,16 +28,18 @@ function SystemLanguageListener() {
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<DatabaseProvider>
|
||||
<SettingsProvider>
|
||||
<NavigationContainer>
|
||||
<SystemLanguageListener />
|
||||
<WatchSync />
|
||||
<RootNavigator />
|
||||
<StatusBar style="light" />
|
||||
</NavigationContainer>
|
||||
</SettingsProvider>
|
||||
</DatabaseProvider>
|
||||
<GestureHandlerRootView style={{ flex: 1 }}>
|
||||
<DatabaseProvider>
|
||||
<SettingsProvider>
|
||||
<NavigationContainer>
|
||||
<SystemLanguageListener />
|
||||
<WatchSync />
|
||||
<RootNavigator />
|
||||
<StatusBar style="light" />
|
||||
</NavigationContainer>
|
||||
</SettingsProvider>
|
||||
</DatabaseProvider>
|
||||
</GestureHandlerRootView>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user