Integrating a mini game into the Application as module!

Integrating a mini game into the Application as module!
0

Hi everybody,
Now i am developing the application use React Native (use Typescript language), I want to integrate a mini game that developed by Cocos Creator engine into the application as app module.
I am looking for a solution but at the moment I don’t have idea about this yet. Can someone suggest the idea for me about this?
Thank so much! :heart_eyes:

Cocos Creator (CC) and React Native (RN) both are using JavaScript. But, they work differently. So, you can’t just run codes from CC in RN natively. Therefore, the easiest way would be as follow.

  • Export CC game as web mobile
  • Add a webview in RN and
  • Load CC game in RN’s webview (as resources or load from URL)
1 Like

Thank for StudioAMK’s answer. It will be final way that used, but i still want to find other way for this issues, can someone has new idea?