{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/extends\";\nimport * as React from 'react';\nimport AppRegistry from \"react-native-web/dist/exports/AppRegistry\";\nimport withExpoRoot from \"./withExpoRoot\";\nexport default function registerRootComponent(component) {\n  var _document$getElementB;\n\n  var App = withExpoRoot(component);\n\n  var RootComponent = function RootComponent(props) {\n    return React.createElement(App, _extends({}, props));\n  };\n\n  AppRegistry.registerComponent('main', function () {\n    return RootComponent;\n  });\n  var rootTag = (_document$getElementB = document.getElementById('root')) != null ? _document$getElementB : document.getElementById('main');\n  AppRegistry.runApplication('main', {\n    rootTag: rootTag\n  });\n}","map":{"version":3,"sources":["../../src/launch/registerRootComponent.web.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;;AAGA,OAAO,YAAP;AAGA,eAAc,SAAU,qBAAV,CACZ,SADY,EACqB;AAAA;;AAEjC,MAAM,GAAG,GAAG,YAAY,CAAC,SAAD,CAAxB;;AACA,MAAM,aAAa,GAAgB,SAA7B,aAA6B,CAAA,KAAK;AAAA,WAAI,KAAA,CAAA,aAAA,CAAC,GAAD,EAAI,SAAA,EAAA,EAAK,KAAL,CAAJ,CAAJ;AAAA,GAAxC;;AACA,EAAA,WAAW,CAAC,iBAAZ,CAA8B,MAA9B,EAAsC;AAAA,WAAM,aAAN;AAAA,GAAtC;AACA,MAAM,OAAO,4BAAG,QAAQ,CAAC,cAAT,CAAwB,MAAxB,CAAH,oCAAsC,QAAQ,CAAC,cAAT,CAAwB,MAAxB,CAAnD;AACA,EAAA,WAAW,CAAC,cAAZ,CAA2B,MAA3B,EAAmC;AAAE,IAAA,OAAO,EAAP;AAAF,GAAnC;AACD","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 {...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":"module"}