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

Method setProperty

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

Source from the content-addressed store, hash-verified

156}
157
158void JavaScriptObject::setProperty(const std::string &name, jsi::Value value) {
159 auto runtime = runtimeHolder.lock();
160 assert((runtime != nullptr) && "JS Runtime was used after deallocation");
161 auto &rawRuntime = runtime->get();
162
163 jsObject->setProperty(rawRuntime, name.c_str(), value);
164}
165
166void JavaScriptObject::unsetProperty(jni::alias_ref<jstring> name) {
167 auto runtime = runtimeHolder.lock();

Callers 15

installModuleClassesMethod · 0.45
unsetPropertyMethod · 0.45
convertMethod · 0.45
createRuntimeMethod · 0.45
prepareRuntimeMethod · 0.45
decorateMethod · 0.45
decorateMethod · 0.45
decorateMethod · 0.45

Calls 3

getMethod · 0.65
assertFunction · 0.50
lockMethod · 0.45