react-native-windows 0.0.0-canary.784 → 0.0.0-canary.786
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -324,6 +324,7 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
324
324
|
accessibilityLiveRegion,
|
|
325
325
|
accessibilityLabel,
|
|
326
326
|
accessibilityState: _accessibilityState,
|
|
327
|
+
disabled: disabled == true,
|
|
327
328
|
focusable: focusable !== false,
|
|
328
329
|
accessibilityValue,
|
|
329
330
|
hitSlop,
|
|
@@ -652,14 +652,15 @@ export default class Pressability {
|
|
|
652
652
|
this._isKeyDown = false;
|
|
653
653
|
},
|
|
654
654
|
onKeyDown: (event: KeyEvent): void => {
|
|
655
|
-
const {onKeyDown} = this._config;
|
|
655
|
+
const {onKeyDown, disabled} = this._config;
|
|
656
656
|
onKeyDown && onKeyDown(event);
|
|
657
657
|
|
|
658
658
|
if (
|
|
659
659
|
(event.nativeEvent.code === 'Space' ||
|
|
660
660
|
event.nativeEvent.code === 'Enter' ||
|
|
661
661
|
event.nativeEvent.code === 'GamepadA') &&
|
|
662
|
-
event.defaultPrevented !== true
|
|
662
|
+
event.defaultPrevented !== true &&
|
|
663
|
+
disabled !== true
|
|
663
664
|
) {
|
|
664
665
|
const {onPressIn} = this._config;
|
|
665
666
|
this._isKeyDown = true;
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.0.0-canary.
|
|
13
|
+
<ReactNativeWindowsVersion>0.0.0-canary.786</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>0</ReactNativeWindowsMinor>
|
|
16
16
|
<ReactNativeWindowsPatch>0</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>true</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>e966f8e94f70400db2f06dcd03e4d4b351245192</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|
package/package.json
CHANGED
|
@@ -20,9 +20,6 @@ struct CompReactPackageProvider
|
|
|
20
20
|
constexpr PCWSTR windowTitle = L"{{ mainComponentName }}";
|
|
21
21
|
constexpr PCWSTR mainComponentName = L"{{ mainComponentName }}";
|
|
22
22
|
|
|
23
|
-
HWND global_hwnd;
|
|
24
|
-
winrt::Microsoft::ReactNative::CompositionRootView *global_rootView{nullptr};
|
|
25
|
-
|
|
26
23
|
float ScaleFactor(HWND hwnd) noexcept {
|
|
27
24
|
return GetDpiForWindow(hwnd) / static_cast<float>(USER_DEFAULT_SCREEN_DPI);
|
|
28
25
|
}
|
|
@@ -106,7 +103,6 @@ _Use_decl_annotations_ int CALLBACK WinMain(HINSTANCE instance, HINSTANCE, PSTR
|
|
|
106
103
|
window.Resize({1000, 1000});
|
|
107
104
|
window.Show();
|
|
108
105
|
auto hwnd = winrt::Microsoft::UI::GetWindowFromWindowId(window.Id());
|
|
109
|
-
global_hwnd = hwnd;
|
|
110
106
|
auto scaleFactor = ScaleFactor(hwnd);
|
|
111
107
|
|
|
112
108
|
auto host = CreateReactNativeHost(hwnd, compositor);
|