Skip to content

Commit

Permalink
[skip ci] Fix UIManagerBinding's findNodeAtPoint (facebook#42439)
Browse files Browse the repository at this point in the history
  • Loading branch information
RSNara authored and facebook-github-bot committed Jan 20, 2024
1 parent d5f474e commit ddf796b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,12 @@ jsi::Value UIManagerBinding::get(
arguments[3].getObject(runtime).getFunction(runtime);
auto targetNode =
uiManager->findNodeAtPoint(node, Point{locationX, locationY});

if (!targetNode) {
onSuccessFunction.call(runtime, jsi::Value::null());
return jsi::Value::undefined();
}

auto& eventTarget = targetNode->getEventEmitter()->eventTarget_;

EventEmitter::DispatchMutex().lock();
Expand Down

0 comments on commit ddf796b

Please sign in to comment.