-
Notifications
You must be signed in to change notification settings - Fork 3
/
root.web.tsx
31 lines (27 loc) · 854 Bytes
/
root.web.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import * as React from "react";
import { StyleSheet } from "react-native";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { Provider } from "react-redux";
import { WithSkiaWeb } from "@shopify/react-native-skia/lib/module/web";
import { store } from "./state/reducer";
const RootApp: React.FC = () => {
return (
<Provider store={store}>
<GestureHandlerRootView style={styles.gestureRootView}>
<WithSkiaWeb
getComponent={async () => {
const Live = (await import("./components/gb-live/live")).default;
return { default: () => <Live /> };
}}
fallback={<span>Loading Map...</span>}
/>
</GestureHandlerRootView>
</Provider>
);
};
export default RootApp;
const styles = StyleSheet.create({
gestureRootView: {
flex: 1
}
});