You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

App.js 750 B

1234567891011121314151617181920212223
  1. import "react-native-gesture-handler";
  2. import React from "react";
  3. import { Provider } from "react-redux";
  4. import { Provider as PaperProvider } from "react-native-paper";
  5. import { PersistGate } from "redux-persist/lib/integration/react";
  6. import { persistor, store } from "./src/store";
  7. import { getTheme } from "./src/ui/Theme";
  8. import AppContainer from "./src/AppContainer";
  9. import { useColorScheme } from "react-native";
  10. export default function App() {
  11. const colorScheme = useColorScheme();
  12. const theme = getTheme(colorScheme);
  13. return (
  14. <Provider store={store}>
  15. <PersistGate persistor={persistor}>
  16. <PaperProvider theme={theme}>
  17. <AppContainer />
  18. </PaperProvider>
  19. </PersistGate>
  20. </Provider>
  21. );
  22. }