Re:Twitter.com's HTML, which is produced by React Native for...
by Tajnymag on Thursday September 02, 2021 @02:40PM
(#28395733)
Could you please share the details? I don't know about a way to render the same template in the browser and nativescript.
Re:Twitter.com's HTML, which is produced by React Native for...
by seph-reed on Thursday September 02, 2021 @03:35PM
(#28396358)
In my case, you basically just take some code like this:
const renderEl = flex("UserList", [
label("User", ["Alice"]),
label("User", ["Bob"]),
]);
In NativeScript, you would have these functions create those types of UI elements. For web, they'd probably produce divs and spans.Ofc, there will be certain elements that are native only, or require really special stuff to create.
Granted, it leverages NativeScript, but it's really not that hard once you have that.