MCPcopy Create free account
hub / github.com/expo/expo / getProperty

Method getProperty

packages/expo-modules-core/android/src/main/cpp/JavaScriptObject.cpp:75–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75jsi::Value JavaScriptObject::getProperty(const std::string &name) {
76 auto runtime = runtimeHolder.lock();
77 assert((runtime != nullptr) && "JS Runtime was used after deallocation");
78 auto &rawRuntime = runtime->get();
79
80 return jsObject->getProperty(rawRuntime, name.c_str());
81}
82
83bool JavaScriptObject::jniHasProperty(jni::alias_ref<jstring> name) {
84 return hasProperty(name->toStdString());

Callers 15

getReactNativeVersionMethod · 0.45
makeCodedErrorFunction · 0.45
convertSharedObjectFunction · 0.45
convertMethod · 0.45
clonePropsMethod · 0.45
installClassMethod · 0.45
consumeForWorkletMethod · 0.45

Calls 3

getMethod · 0.65
assertFunction · 0.50
lockMethod · 0.45