Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "App crashes at startup on RS3 because of RS4+ API usage",
"packageName": "react-native-windows",
"email": "asklar@microsoft.com",
"dependentChangeType": "patch"
}
4 changes: 3 additions & 1 deletion vnext/Microsoft.ReactNative/Views/ReactRootControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,9 @@ void ReactRootControl::AttachBackHandlers(XamlView const &rootView) noexcept {
altLeft.Modifiers(winrt::Windows::System::VirtualKeyModifiers::Menu);

// Hide keyboard accelerator tooltips
rootElement.KeyboardAcceleratorPlacementMode(xaml::Input::KeyboardAcceleratorPlacementMode::Hidden);
if (react::uwp::IsRS4OrHigher()) {
rootElement.KeyboardAcceleratorPlacementMode(xaml::Input::KeyboardAcceleratorPlacementMode::Hidden);
}
}

void ReactRootControl::RemoveBackHandlers() noexcept {
Expand Down