I'm working on a React Native project, and I'd like to build an app that allows users to play HTML5 games fetched from the web or an API. I'm relatively new to React Native, and I'm seeking guidance on the best approach to implement this feature.
Specifically, I'm interested in:
Fetching HTML5 games from a web source or API. Displaying these games within my React Native app. Allowing users to play these games seamlessly. If anyone has experience with similar implementations or can provide guidance on the necessary libraries, best practices, or sample code snippets, I would greatly appreciate it. Thank you in advance for your help!
You can use Webview to show the game directly through url.
If you want to communicate with web like need to run any js code use prop
injectedJavaScriptand you can listen to response from web throughonMessageThere is multiple ways to inject JavaScript visit