Skip to content

Commit

Permalink
Pass correct action name in the props callback
Browse files Browse the repository at this point in the history
Summary:
JS side expects the property name to be "actionName", and this change updates it to that.

Changelog:
[iOS][Fixed] - Use actionName in accessibility event callback

Reviewed By: JoshuaGross

Differential Revision: D28645999

fbshipit-source-id: 0e7a6c3e6c1b6c998f4b53fd89c744c84083dfb1
  • Loading branch information
Andrei Shikov authored and facebook-github-bot committed May 24, 2021
1 parent 900fed5 commit fed6ad5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace react {
void ViewEventEmitter::onAccessibilityAction(const std::string &name) const {
dispatchEvent("accessibilityAction", [name](jsi::Runtime &runtime) {
auto payload = jsi::Object(runtime);
payload.setProperty(runtime, "action", name);
payload.setProperty(runtime, "actionName", name);
return payload;
});
}
Expand Down

0 comments on commit fed6ad5

Please sign in to comment.