forked from badger-cash/badger-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
35 lines (28 loc) · 897 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
34
35
import React from "react";
import styled, { ThemeProvider } from "styled-components";
import { Provider } from "react-redux";
import { View } from "react-native";
import { PersistGate } from "redux-persist/integration/react";
import AppNavigator from "./navigation/AppNavigator";
import { getStore } from "./data/store";
import { spaceBadger } from "./themes/spaceBadger";
const { store, persistor } = getStore();
const AppWrapper = styled(View)`
flex: 1;
`;
const bchPrefix = "bitcoincash";
const slpPrefix = "simpleledger";
const App = () => {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<ThemeProvider theme={spaceBadger}>
<AppWrapper>
<AppNavigator uriPrefix={bchPrefix || slpPrefix} />
</AppWrapper>
</ThemeProvider>
</PersistGate>
</Provider>
);
};
export default App;