您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

24 行
761 B

  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/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} loading={null}>
  16. <PaperProvider theme={theme}>
  17. <AppContainer />
  18. </PaperProvider>
  19. </PersistGate>
  20. </Provider>
  21. );
  22. }