Skip to content

Commit fed6ad5

Browse files
Andrei Shikovfacebook-github-bot
Andrei Shikov
authored andcommitted
Pass correct action name in the props callback
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
1 parent 900fed5 commit fed6ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactCommon/react/renderer/components/view/ViewEventEmitter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace react {
1515
void ViewEventEmitter::onAccessibilityAction(const std::string &name) const {
1616
dispatchEvent("accessibilityAction", [name](jsi::Runtime &runtime) {
1717
auto payload = jsi::Object(runtime);
18-
payload.setProperty(runtime, "action", name);
18+
payload.setProperty(runtime, "actionName", name);
1919
return payload;
2020
});
2121
}

0 commit comments

Comments
 (0)