javascript - Embed JavaScript game inside React Native app using Hermes
问题描述
I'd like to embed an HTML5 game inside my React Native app. This game is 99% JavaScript and a tiny bit of HTML / CSS. It works to embed the game using react-native-webview, but the game is very slow to load despite being a tiny game.
Hermes is lauded for its ability to load JavaScript very fast and I'd therefore like to use it to embed my game. The game is completely stored locally so there's no need for the WebView part that takes a URL.
How would I use Hermes to embed my HTML5 game?
解决方案
推荐阅读
- java - Java Spring Profile 有异常吗?
- javascript - 我将 lint 与 angular2+ 一起使用,如何按字母顺序对构造函数参数进行排序?
- python - 检查字典列表中数字的索引
- odoo - Odoo 忽略了我对模型和视图所做的所有更改
- java - 项目点击上的导航抽屉仍然在主页片段上
- docker - 当 Pod 运行时间过长时,Prometheus 会发出警报
- hex - jpg(exif)中文件大小的十六进制值在哪里
- angular - 在 angular firestore / firebase 中向用户展示广告字段
- ansible - Ansible - 支持或不支持 base64 编码的剧本
- python - 使用 beautifulsoup 和 Python3 抓取网页(蛋白质数据库)高度嵌套的标签