4683087922f417f2a1326e5b444a5148.json
2.19 KB
{"ast":null,"code":"var _interopRequireWildcard=require(\"@babel/runtime/helpers/interopRequireWildcard\");var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=registerRootComponent;var _extends2=_interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));var React=_interopRequireWildcard(require(\"react\"));var _AppRegistry=_interopRequireDefault(require(\"react-native-web/dist/exports/AppRegistry\"));var _withExpoRoot=_interopRequireDefault(require(\"./withExpoRoot\"));function registerRootComponent(component){var App=(0,_withExpoRoot.default)(component);var RootComponent=function RootComponent(props){return React.createElement(App,(0,_extends2.default)({exp:{}},props));};_AppRegistry.default.registerComponent('main',function(){return RootComponent;});var rootTag=document.getElementById('root')||document.getElementById('main');_AppRegistry.default.runApplication('main',{rootTag:rootTag});}","map":{"version":3,"sources":["../../src/launch/registerRootComponent.web.tsx"],"names":[],"mappings":"uVAAA,oD,8FAGA,oEAGc,QAAU,CAAA,qBAAV,CACZ,SADY,CACqB,CAEjC,GAAM,CAAA,GAAG,CAAG,0BAAa,SAAb,CAAZ,CACA,GAAM,CAAA,aAAa,CAAgB,QAA7B,CAAA,aAA6B,CAAA,KAAK,QAAI,qBAAC,GAAD,wBAAK,GAAG,CAAE,EAAV,EAAkB,KAAlB,EAAJ,EAAxC,CACA,qBAAY,iBAAZ,CAA8B,MAA9B,CAAsC,iBAAM,CAAA,aAAN,EAAtC,EACA,GAAM,CAAA,OAAO,CAAG,QAAQ,CAAC,cAAT,CAAwB,MAAxB,GAAmC,QAAQ,CAAC,cAAT,CAAwB,MAAxB,CAAnD,CACA,qBAAY,cAAZ,CAA2B,MAA3B,CAAmC,CAAE,OAAO,CAAP,OAAF,CAAnC,EACD","sourcesContent":["import * as React from 'react';\nimport { AppRegistry } from 'react-native';\n\nimport withExpoRoot from './withExpoRoot';\nimport { InitialProps } from './withExpoRoot.types';\n\nexport default function registerRootComponent<P extends InitialProps>(\n component: React.ComponentType<P>\n): void {\n const App = withExpoRoot(component);\n const RootComponent: React.FC<P> = props => <App exp={{}} {...props} />;\n AppRegistry.registerComponent('main', () => RootComponent);\n const rootTag = document.getElementById('root') || document.getElementById('main');\n AppRegistry.runApplication('main', { rootTag });\n}\n"],"sourceRoot":""},"metadata":{},"sourceType":"script"}