News for hackers. Stuff that matters.
Re:Twitter.com's HTML, which is produced by React Native for... by seph-reed on Thursday September 02, 2021 @02:12PM (#28395400)
I'm a solo developer, and I have a project that totally can do it. I've done the proof-of-concept in an afternoon, but am mostly focused on web stuff atm.

Granted, it leverages NativeScript, but it's really not that hard once you have that.

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.