Skip to content

Commit

Permalink
Fabric: UIManagerBinding::setNativeProps
Browse files Browse the repository at this point in the history
Summary: Pretty straightforward.

Reviewed By: sahrens

Differential Revision: D13114836

fbshipit-source-id: ff86b28d8764955383d4b46a369faf978825f6eb
  • Loading branch information
shergin authored and facebook-github-bot committed Nov 28, 2018
1 parent 142dd76 commit 28c3981
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ReactCommon/fabric/uimanager/UIManagerBinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 28c3981

Please sign in to comment.