about summary refs log tree commit diff
path: root/index.web.js
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-01-26 12:12:27 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-01-26 12:12:27 -0600
commitd6ec627c8cd32836e5ed494606318959ca17fca1 (patch)
tree90de43466e097263730e4f248584f68135bcc947 /index.web.js
parent7e3f6f030680a8cf7b5baa3ce6f33acd5766fca8 (diff)
downloadvoidsky-d6ec627c8cd32836e5ed494606318959ca17fca1.tar.zst
Update web build and web-specific components; RNW now builds
Diffstat (limited to 'index.web.js')
-rw-r--r--index.web.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/index.web.js b/index.web.js
new file mode 100644
index 000000000..5154bfa7b
--- /dev/null
+++ b/index.web.js
@@ -0,0 +1,13 @@
+// index.web.js
+
+import {AppRegistry} from 'react-native'
+import App from './src/App'
+import {name as appName} from './src/app.json'
+
+// register the app
+AppRegistry.registerComponent(appName, () => App)
+
+AppRegistry.runApplication(appName, {
+  initialProps: {},
+  rootTag: document.getElementById('app-root'),
+})