首页 > 解决方案 > 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?

标签: javascriptreact-nativewebviewreact-native-hermes

解决方案


推荐阅读