Revize 8bb5689a
Přidáno uživatelem Michal Schwob před více než 1 rok
App.tsx | ||
---|---|---|
1 | 1 |
import 'react-native-gesture-handler' |
2 | 2 |
import { NativeBaseProvider } from "native-base" |
3 | 3 |
import { Provider } from "react-redux" |
4 |
import store from "./src/stores/store"
|
|
4 |
import { store, Persistor } from "./src/stores/store"
|
|
5 | 5 |
import Navigation from "./src/pages/Navigation" |
6 | 6 |
import { nativeBaseTheme } from "./src/theme/nativeBaseTheme" |
7 |
import { PersistGate } from 'redux-persist/integration/react' |
|
7 | 8 |
|
8 | 9 |
export default function App() { |
9 | 10 |
return ( |
10 | 11 |
<Provider store={ store }> |
11 |
<NativeBaseProvider theme={ nativeBaseTheme }> |
|
12 |
<Navigation/> |
|
13 |
</NativeBaseProvider> |
|
12 |
<PersistGate persistor={Persistor}> |
|
13 |
<NativeBaseProvider theme={ nativeBaseTheme }> |
|
14 |
<Navigation/> |
|
15 |
</NativeBaseProvider> |
|
16 |
</PersistGate> |
|
14 | 17 |
</Provider> |
15 | 18 |
) |
16 | 19 |
} |
Také k dispozici: Unified diff
Added persistor storage to save app state
re #10821