-
-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] Support React Native? #1136
Comments
I haven't use react native as a bundler, but one of the advantage of Cordova is (or was maybe since it's not being updated anymore) is all the monetisation plugins. Capacitor can use the Cordova plugins (assuming they have been updated), but I'm not sure about react native ? |
Here's one way someone did it, react native targets native device APIs (see the Android Native Modules and iOS native modules) so I think you should be able to use not only ad/monetization libraries made for your target platform, but you can also port any other features/libraries specific to your platform of choice. |
oh super interesting, I really need to look into it, thanks for sharing that ! |
to come back on the original request on supporting react native, it seems that it could just about adding https://www.npmjs.com/package/@flyskywhy/react-native-gcanvas as part of the project boilerplate dependencies ? we really need to try :) |
I'm really still favouring more capacitor though, to be honest : |
FYI, this project uses React and other framework/components with melonJS: point being that It does not seems like we need anything particular to be changed in melonJS, beside for the user to be bundling it with melonJS, so until/unless someone comes up with what (else) specifically we would be missing I will close this ticket. also, as a reminder, in a previous version we added the possibility to provide a custom renderer: |
Is your feature request related to a problem? Please describe.
Johannes Stein describes the architecture differences between React Native and Cordova
Cordova
React Native
I think the advantage here is that we only need to run the JS engine, rather than run the entire browser (which has a lot of feature bloat)
Describe the solution you'd like
We could build some kind of component system for making MelonJS games in React native (especially since we've already done the work to implement modules)
Describe alternatives you've considered
I'm not sure I'm not an expert in mobile dev
Additional context
I haven't yet tested the Cordova version, it would be good to do performance measurements
The text was updated successfully, but these errors were encountered: