summaryrefslogtreecommitdiff
path: root/client/index.web.js
diff options
context:
space:
mode:
authorjules <jules@carbonpictures.com>2017-06-02 15:42:34 +0000
committerjules <jules@carbonpictures.com>2017-06-02 15:42:34 +0000
commit5f26431f03228a85273e7f7d51abd6098ea9f2a5 (patch)
tree6a709972cbb0babd68aaa10fe277b2c843fd7451 /client/index.web.js
parent291fe3eedd9a460fc44d2ea3ea81c7d79f2dfbcf (diff)
parentdd70fa81a205304cb48bbc0494ad34c16d496ff2 (diff)
merge
Diffstat (limited to 'client/index.web.js')
-rw-r--r--client/index.web.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/client/index.web.js b/client/index.web.js
new file mode 100644
index 0000000..b48b84b
--- /dev/null
+++ b/client/index.web.js
@@ -0,0 +1,14 @@
+import { AppRegistry } from 'react-native';
+import App from './app'
+
+// Sets up offline caching for all assets (disabled by default)
+// You can enable offline caching by changing
+// `enableOfflinePlugin` at the top of web/webpack.config.js
+if (__OFFLINE__) {
+ require('offline-plugin/runtime').install()
+}
+
+AppRegistry.registerComponent('HanselGretelApp', () => App);
+AppRegistry.runApplication('HanselGretelApp', {
+ rootTag: window.document.getElementById('react-root'),
+});