-
Notifications
You must be signed in to change notification settings - Fork 63
React Native app as host 8000 #564
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
Comments
@mateuszmazurek Having similar doubts, have you come up to any conclusion on this matter, to using remote-dom or remote-ui? |
Hey @mateuszmazurek and @thinesjs, my apologies for the delay. This is a great question! The most important thing to decide first is what experience you want the builder of the "remote" applications to have. Are you comfortable with them only being able to use the "vanilla JavaScript" API for That said, I think most folks will be better off moving to Remote DOM instead. Its "vanilla" API is more familiar to developers (since it's just the DOM), and its React version does not depend on a custom reconciler. The Shopify is moving its UI extension system towards Remote DOM, including on native starting with UI extensions in Shopify Mobile. Aside from a slightly larger sandbox to load extensions into, there isn't much difference for the client app — both |
@lemonmade Do you have a simple example, template, or boilerplate showing how to use Remote DOM in a React Native host (client) app — ideally also with node.js as a remote? It feels a bit complicated to me (though it probably isn’t), and I always learn best by analyzing existing code. That would be really helpful! :) |
My "host" application is built using React Native. I'm trying to understand whether I should be utilizing
remote-ui
or the newly introducedremote-dom
in this context. Ifremote-dom
is the recommended approach, I assume I would need to incorporate the DOM polyfill. Could you elaborate on the advantages of using this new approach withremote-dom
compared to the previous architecture ofremote-ui
, especially within a React Native environment? Furthermore, I'm curious if Shopify's own mobile applications have already migrated to usingremote-dom
, or if they are still relying onremote-ui
for their remote rendering needs. Any insights into Shopify's internal adoption strategy would be greatly appreciated.(I originally posted this in this discussion, but since I haven’t received a response, I thought it might be better to open an issue instead)
The text was updated successfully, but these errors were encountered: