Code Monkey home page Code Monkey logo

Comments (2)

raquo avatar raquo commented on June 3, 2024

Some relevant resources from Discord discussion with @armanbilge:

Fabric virtual dom api: https://github.com/facebook/react-native/blob/b044ece59475c251bcf13bac0652f72d901e1c88/Libraries/ReactNative/FabricUIManager.js#L27-L32

Direct "DOM" updates with setNativeProps: https://reactnative.dev/docs/direct-manipulation

"DOM" rendering architecture: https://reactnative.dev/architecture/render-pipeline

ReactNativeHostConfig: https://github.com/facebook/react/blob/d49e0e0be0941490fe709f80de137516ba4c0ee3/packages/react-native-renderer/src/ReactNativeHostConfig.js#L263-L267

  • It calls into low level UIManager.updateView / manageChildren methods, but it's a pretty thin wrapper over them, doing minor diffing calculations. I guess we don't need those calculations for Laminar API, but on the other hand as Arman said, if we target the HostConfig API, we could potentially target... other renderers written to that same API? I think https://github.com/necolas/react-native-web might be one of those, but not sure yet how it's implemented.

from laminar.

raquo avatar raquo commented on June 3, 2024

Note to self – one other uncertainty is the ability of Hermes to run Scala.js code. Seems doable but has some limitations apparently. Haven't looked into it myself. Discussion in scala-js discord: https://discord.com/channels/632150470000902164/635668814956068864/1143118419479236719

from laminar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.