forked from moviendome/expo-solana-wallet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
33 lines (25 loc) · 750 Bytes
/
App.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
32
33
import { StatusBar } from "expo-status-bar";
import React from "react";
import { StoreProvider } from "easy-peasy";
import "./global";
import "react-native-url-polyfill/auto";
import { Provider as PaperProvider } from "react-native-paper";
import { theme } from "./core/theme";
import useCachedResources from "./hooks/useCachedResources";
import store from "./store";
import Navigation from "./navigation";
export default function App() {
const isLoadingComplete = useCachedResources();
if (!isLoadingComplete) {
return null;
} else {
return (
<StoreProvider store={store}>
<PaperProvider theme={theme}>
<Navigation />
<StatusBar />
</PaperProvider>
</StoreProvider>
);
}
}