diff --git a/ReactCommon/fabric/uimanager/UIManagerBinding.cpp b/ReactCommon/fabric/uimanager/UIManagerBinding.cpp index c26f3b20ea49f3..d1fd3861f19235 100644 --- a/ReactCommon/fabric/uimanager/UIManagerBinding.cpp +++ b/ReactCommon/fabric/uimanager/UIManagerBinding.cpp @@ -304,6 +304,24 @@ jsi::Value UIManagerBinding::get( }); } + if (methodName == "setNativeProps") { + return jsi::Function::createFromHostFunction( + runtime, + name, + 2, + [&uiManager]( + jsi::Runtime &runtime, + const jsi::Value &thisValue, + const jsi::Value *arguments, + size_t count) -> jsi::Value { + uiManager.setNativeProps( + shadowNodeFromValue(runtime, arguments[0]), + rawPropsFromValue(runtime, arguments[1])); + + return jsi::Value::undefined(); + }); + } + return jsi::Value::undefined(); }