UNPKG

one

Version:

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

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