3 ms·
It's the opposite - instead of React Native mapping HTML elements into appropriate native components, websites are just another platform target. You write your
by t1amat 10y ago
It's the opposite - instead of React Native mapping HTML elements into appropriate native components, websites are just another platform target. You write your components using normal React Native components (Views, Text, ScrollView, etc.) and the `react-native-web` platform converts that into structurally (but not semantically) compatible HTML.
The nice thing is, this is how all platform targets work. It's the platform extension's responsibility to map React Native to their platform. In the case of layout mapping, this typically involves mapping to the `Yoga`[1] layout engine on that platform.
[1]: https://github.com/facebook/yoga https://github.com/facebook/yoga
- jannotti 10y agoExcellent, yes, that's exactly what I want.