Skip to content

Commit

Permalink
Fix hardware back events (#10743)
Browse files Browse the repository at this point in the history
* Fix typo

* Change files
  • Loading branch information
DrewHigginsMSFT committed Oct 27, 2022
1 parent 8d83bcc commit 6943715
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Fix typo in TouchHandler.cpp which broke hardware back button events",
"packageName": "react-native-windows",
"email": "jahiggin@microsoft.com",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion vnext/Microsoft.ReactNative/Views/TouchEventHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ bool TouchEventHandler::DispatchBackEvent() {
return false;

BatchingEmitter().EmitJSEvent(
L"RCTDeviceEventEmitter", L"emit", winrt::Microsoft::ReactNative::MakeJSValueArgWriter(L"hardwardBackPress"));
L"RCTDeviceEventEmitter", L"emit", winrt::Microsoft::ReactNative::MakeJSValueArgWriter(L"hardwareBackPress"));

return true;
}
Expand Down

0 comments on commit 6943715

Please sign in to comment.