{"ast":null,"code":"import 'expo/build/Expo.fx';\nimport AppRegistry from \"react-native-web/dist/exports/AppRegistry\";\nimport Platform from \"react-native-web/dist/exports/Platform\";\nimport withExpoRoot from \"./withExpoRoot\";\nexport default function registerRootComponent(component) {\n  AppRegistry.registerComponent('main', function () {\n    return withExpoRoot(component);\n  });\n\n  if (Platform.OS === 'web') {\n    var _document$getElementB;\n\n    var rootTag = (_document$getElementB = document.getElementById('root')) != null ? _document$getElementB : document.getElementById('main');\n    AppRegistry.runApplication('main', {\n      rootTag: rootTag\n    });\n  }\n}","map":{"version":3,"sources":["../../src/launch/registerRootComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAP;;;AAIA,OAAO,YAAP;AAGA,eAAc,SAAU,qBAAV,CACZ,SADY,EACqB;AAEjC,EAAA,WAAW,CAAC,iBAAZ,CAA8B,MAA9B,EAAsC;AAAA,WAAM,YAAY,CAAC,SAAD,CAAlB;AAAA,GAAtC;;AACA,MAAI,QAAQ,CAAC,EAAT,KAAgB,KAApB,EAA2B;AAAA;;AACzB,QAAM,OAAO,4BAAG,QAAQ,CAAC,cAAT,CAAwB,MAAxB,CAAH,oCAAsC,QAAQ,CAAC,cAAT,CAAwB,MAAxB,CAAnD;AACA,IAAA,WAAW,CAAC,cAAZ,CAA2B,MAA3B,EAAmC;AAAE,MAAA,OAAO,EAAP;AAAF,KAAnC;AACD;AACF","sourcesContent":["import 'expo/build/Expo.fx';\nimport * as React from 'react';\nimport { AppRegistry, Platform } 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  AppRegistry.registerComponent('main', () => withExpoRoot(component));\n  if (Platform.OS === 'web') {\n    const rootTag = document.getElementById('root') ?? document.getElementById('main');\n    AppRegistry.runApplication('main', { rootTag });\n  }\n}\n"],"sourceRoot":""},"metadata":{},"sourceType":"module"}