diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-06-01 19:47:08 -0400 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-06-01 19:47:08 -0400 |
| commit | 3e72bfa56c860826429a842f6c128d78d4a930db (patch) | |
| tree | 3cecd31c92d53fae32e9761b80802c82f3dcb7fa /client/index.web.js | |
| parent | b694bd511ceccd00d4a4c98f36f910d5fc5f79c4 (diff) | |
react-native-web port of fmf app
Diffstat (limited to 'client/index.web.js')
| -rw-r--r-- | client/index.web.js | 14 |
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'), +}); |
