sonzai/index.js

44 lines
1.0 KiB
JavaScript
Raw Normal View History

2020-03-12 18:14:38 +01:00
import React from "react";
import {AppRegistry} from "react-native";
import App from "./App";
import {name as appName} from "./app.json";
2020-03-14 11:35:35 +01:00
import { DarkTheme, Provider } from "react-native-paper";
import { Provider as ReduxProvider } from "react-redux";
import { PersistGate } from "redux-persist/integration/react";
import configureStore from "./configureStore";
const { store, persistor } = configureStore();
2020-03-14 11:35:35 +01:00
const theme = {
...DarkTheme,
mode: "exact",
colors: {
2020-03-16 15:45:10 +01:00
primary: "#ededed",
accent: "#1a237e",
backdrop: "rgba(0, 0, 0, 0.5)",
background: "#000000",
disabled: "rgba(255, 255, 255, 0.38)",
error: "#CF6679",
notification: "#ff80ab",
onBackground: "#FFFFFF",
onSurface: "#FFFFFF",
placeholder: "rgba(255, 255, 255, 0.54)",
surface: "#121212",
text: "#ffffff"
2020-03-14 11:35:35 +01:00
}
};
2020-03-07 09:23:17 +01:00
2020-03-12 18:14:38 +01:00
export default function Main() {
return (
<ReduxProvider store={store}>
<PersistGate persistor={persistor}>
<Provider theme={theme}>
<App />
</Provider>
</PersistGate>
</ReduxProvider>
2020-03-12 18:14:38 +01:00
);
}
AppRegistry.registerComponent(appName, () => Main);