简体中文
外观
NativeModule
name
name 属性是这个模块登记时用的名字,也就是传给 application.nativeModules.get() 的那个名字。
application.nativeModules.get()
字符串。
TypeError
const example = application.nativeModules.get('example'); console.log(example.name);
结果:输出 example。
example
没有对应的系统 API。名字是原生那一侧登记模块时定的。
application.nativeModules.names