UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

27 lines (26 loc) 760 B
import { jsx as _jsx } from "react/jsx-runtime"; import { AppRegistry, LogBox } from "react-native"; import { Root } from "./Root.native.js"; LogBox.ignoreLogs([/Sending .* with no listeners registered/]); function createApp(options) { var App = function () { var contents = /* @__PURE__ */_jsx(Root, { isClient: true, flags: options.flags, routes: options.routes, routerRoot: options.routerRoot, path: "/" }); return contents; }; AppRegistry.registerComponent("main", function () { return App; }); if (process.env.ONE_APP_NAME) { AppRegistry.registerComponent(process.env.ONE_APP_NAME, function () { return App; }); } } export { createApp }; //# sourceMappingURL=createApp.native.js.map