mirror of
https://github.com/expo/web-examples.git
synced 2026-11-15 09:38:07 -10:00
16 lines
327 B
JavaScript
16 lines
327 B
JavaScript
/**
|
|
* @format
|
|
*/
|
|
|
|
import {AppRegistry, Platform} from 'react-native';
|
|
import App from './App';
|
|
import {name as appName} from './app.json';
|
|
|
|
AppRegistry.registerComponent(appName, () => App);
|
|
|
|
if (Platform.OS === 'web') {
|
|
AppRegistry.runApplication(appName, {
|
|
rootTag: document.getElementById('root'),
|
|
});
|
|
}
|
|
|