gpt4 book ai didi

reactjs - React Native 中的 'vending' 是什么?

转载 作者:行者123 更新时间:2023-12-02 18:31:43 26 4
gpt4 key购买 nike

在阅读了一些 React Native 文档后,我想知道术语“vend”来自哪里。任何人都可以阐明“vend”的词源,或者该词是否可以受益于比文档中给出的程序定义更广泛的定义(this one is from the React Native iOS docs):

Vending a view is simple:

  • Create the basic subclass.
  • Add the RCT_EXPORT_MODULE() marker macro.
  • Implement the -(UIView *)view method

最佳答案

在这种情况下,vend 与“serve”同义。尝试将每个“vend”实例替换为“serve”,这对您来说应该有意义。

The key is to make the RCTMapManager a delegate for all the views it vends, and...

.

You can see we're setting the manager as the delegate for every view that it vends, then...

.

These subclasses are similar in function to view controllers, but are essentially singletons - only one instance of each is created by the bridge. They vend native views to the RCTUIManager, which...

关于reactjs - React Native 中的 'vending' 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36143297/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com