12345678910111213141516171819
  1. // @flow
  2. import * as React from "react";
  3. import { Provider as PaperProvider } from "react-native-paper";
  4. import { AppRegistry } from "react-native";
  5. import { name as appName } from "./app.json";
  6. import App from "./App";
  7. import theme from "./theme";
  8. function Main() {
  9. return (
  10. <PaperProvider theme={theme}>
  11. <App />
  12. </PaperProvider>
  13. );
  14. }
  15. AppRegistry.registerComponent(appName, () => Main);