Initial Expo base app config with Redux

This commit is contained in:
Patrick Fic
2020-08-05 21:39:25 -07:00
parent ce1f58dbd8
commit 53360b1d5e
16 changed files with 6408 additions and 13 deletions

36
App.js
View File

@@ -1,21 +1,37 @@
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { StatusBar } from "expo-status-bar";
import React from "react";
import {
SafeAreaView,
StatusBar as rnStatusBar,
StyleSheet,
Text,
View,
} from "react-native";
import { store, persistor } from "./redux/store";
import { Provider } from "react-redux";
import { PersistGate } from "redux-persist/integration/react";
export default function App() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
<StatusBar style="auto" />
</View>
<Provider store={store}>
<PersistGate persistor={persistor}>
<SafeAreaView style={styles.container}>
<View style={styles.container}>
<Text>Open up App.js to start working on your app! ttt</Text>
<StatusBar style="auto" />
</View>
</SafeAreaView>
</PersistGate>
</Provider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
paddingTop: Platform.OS === "android" ? rnStatusBar.currentHeight : 0,
},
});