Advertisement
Guest User

app.js

a guest
Mar 26th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. import React from "react";
  2. import App from "./src";
  3. import { Provider } from "react-redux";
  4. import { PersistGate } from "redux-persist/integration/react";
  5. import { persistor, store } from "./src/store/index";
  6. import globalStyles from "./src/assets/styles/global";
  7. import { View, Image, StatusBar } from "react-native";
  8. import { Text } from "native-base";
  9.  
  10. const Loading = () => (
  11. <View style={[globalStyles.centerContainer, { backgroundColor: "#2845b5" }]}>
  12. <StatusBar hidden />
  13. <Text style={{ fontWeight: "bold", fontSize: 20, color: "white" }}>
  14. Abunawas
  15. </Text>
  16. <Text style={{ color: "white" }}>Corporate</Text>
  17. </View>
  18. );
  19.  
  20. export default () => (
  21. <Provider store={store}>
  22. <PersistGate loading={<Loading />} persistor={persistor}>
  23. <App />
  24. </PersistGate>
  25. </Provider>
  26. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement