Available MaterialsĪt ReactConf 2018 did a talk about React Native's New Architecture, which also explains the 3 concepts above: JSI, Fabric, TurboModule. In React Native, we can similarly use the JavaScript interface to invoke methods on UI Views and Native Modules that are implemented in Java/ObjC. When JavaScript calls el.setAttribute('width', 100), we end up synchronously invoking the setWidth method in C++ that changes the actual width of that element. For example, in the statement var el = document.createElement('div') the variable el holds a reference not to a JavaScript object, but to an object that was possibly instantiated in C++. Instead of using the bridge for queuing messages, the new architecture allows us to directly "invoke" (think RPC) Java/ObjC methods.Īn analogy would be how we call DOM methods from JavaScript in the browser. ( dedicated issue)įrom blogpost, here's a temporary description of the JSI ( please consider that this is not yet finalized, it may change in the future)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |