mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-06-17 19:25:38 +08:00
17 lines
454 B
JavaScript
17 lines
454 B
JavaScript
import { AppRegistry } from 'react-native'
|
|
import { URL, URLSearchParams } from 'whatwg-url'
|
|
|
|
import './web/src/index.css'
|
|
import './web/src/reset.css'
|
|
|
|
import App from './src/components/App.tsx'
|
|
|
|
// see https://github.com/facebook/react-native/issues/16434
|
|
global.URL = URL
|
|
global.URLSearchParams = URLSearchParams
|
|
|
|
AppRegistry.registerComponent('devhub', () => App)
|
|
AppRegistry.runApplication('devhub', {
|
|
rootTag: document.getElementById('root'),
|
|
})
|