Add web example (#1717)

Added web example to `Example`
This commit is contained in:
Mathieu Acthernoene
2022-03-07 12:16:50 +01:00
committed by GitHub
parent 7afd23665f
commit 2fa9645cf6
52 changed files with 1688 additions and 1554 deletions
+6 -1
View File
@@ -3,7 +3,12 @@
*/
import {AppRegistry} from 'react-native';
import App from './App';
import App from './src/App';
import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => App);
if (typeof document !== 'undefined') {
const rootTag = document.getElementById('root');
AppRegistry.runApplication(appName, {rootTag});
}