-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[Portability] Provide mappings for core components to web #182
Comments
It is :) |
But yeah, we've designed all the APIs such that they could be implemented on the web. I want to get the web backend working at some point. |
Cool. That will be exciting to see React come full circle. |
I know vjeux is excited about this, so passing to him for when he has time (or so he can find another owner). |
Here's an attempt made by @necolas to figure this out: https://github.com/necolas/react-web-sdk |
The core components in general are really great building blocks, which is why I started implementing bits of them for our web stack. How much of the API's do you imagine being necessary (or different) for web? For example:
I wanted to avoid the need for |
react native to web. We have tried. but performance is slow for android. my blog http://www.ghugo.com/react-native-to-web/ |
That's really cool @baofen14787. Thanks for sharing your experience! |
Our implementation approach:
@ide @vjeux We don't know how is the progress on Facebook side and whether their direction and thinking are consistent with ours? |
@baofen14787 this is awesome. I want to do the same next month and run our apps on web. I really want to know if the browsers are slow or if it was because we used to write slow code |
This is interesting. Would using RN calculated layout make more sense? I think this would make layout to layout animations directly supportable, rather than CSS transitions. |
Can you reduce the number of components that need to be loaded during the first mount? By implementing some kind of pagination? |
I am trying to do this, but wonder whether there is a good solution to backward react-native code |
@vjeux Wiil react native for web be release in next month ? |
There's no concrete plan to work on a web backend right now, so definitely not within the next month. It should also be pretty slow if you create 2000 view and text on react native. Did you find that it was not an issue on react native but an issue on react web? |
View and Text is native component in React-Native ?
react native will create only one component. but react web create 7 component. ? I'm not sure of course, react-web itself has some problems |
|
👍 |
Unlikely from our end, no one is working on it |
Another implementation in the works here https://github.com/KodersLab/react-native-for-web |
@browniefed - let's keep it open for now so people searching active issues will find it, as it seems to be a common concern |
Would be awesome to bring this to react native core project at some point! |
👍 for this, would love to be able to quickly work on my application without having to boot up XCode and the Simulator etc. I don't expect it to be 1:1 but just good enough to see the app and work on it would be a huge benefit |
We create a react-web project alone, and expect that we can pull request a submit to the core. |
Hey @ide! Thanks for opening the issue, but we are closing it because it looks like a feature request, feel free to send us a pool request or vote on it on Product Pains. :) |
For any future visitors, react-native-web is aiming for rough "parity" with React Native 0.22. It can even run multiple apps (inc. the RN example games, unmodified) at the same time: http://codepen.io/necolas/pen/oxBXma. |
Direct link to the Product Pains post, to vote on this issue: |
The basic idea is that
<View>
can render to a<div>
or canvas, etc. DOM is just another flavor of UIKit. Figuring out the layout system is probably the most challenging part unless React Native's layout engine is a subset of CSS.The text was updated successfully, but these errors were encountered: