react-native-windows 0.72.4 → 0.72.6

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.
@@ -25,6 +25,13 @@ void ActivityIndicatorViewManager::GetNativeProps(const winrt::Microsoft::ReactN
25
25
  winrt::Microsoft::ReactNative::WriteProperty(writer, L"color", L"Color");
26
26
  }
27
27
 
28
+ ShadowNode *Microsoft::ReactNative::ActivityIndicatorViewManager::createShadow() const {
29
+ ShadowNode *shadowNode = Super::createShadow();
30
+ ShadowNodeBase *shadowNodeBase = static_cast<ShadowNodeBase *>(shadowNode);
31
+ shadowNodeBase->IsFocusable(false);
32
+ return shadowNode;
33
+ }
34
+
28
35
  XamlView ActivityIndicatorViewManager::CreateViewCore(
29
36
  int64_t /*tag*/,
30
37
  const winrt::Microsoft::ReactNative::JSValueObject &) {
@@ -15,6 +15,7 @@ class ActivityIndicatorViewManager : public ControlViewManager {
15
15
 
16
16
  const wchar_t *GetName() const override;
17
17
  void GetNativeProps(const winrt::Microsoft::ReactNative::IJSValueWriter &writer) const override;
18
+ ShadowNode *createShadow() const override;
18
19
 
19
20
  protected:
20
21
  bool UpdateProperty(
@@ -100,6 +100,8 @@ void ScrollViewShadowNode::dispatchCommand(
100
100
  void ScrollViewShadowNode::createView(const winrt::Microsoft::ReactNative::JSValueObject &props) {
101
101
  Super::createView(props);
102
102
 
103
+ IsFocusable(false);
104
+
103
105
  const auto scrollViewer = GetView().as<winrt::ScrollViewer>();
104
106
  const auto scrollViewUWPImplementation = ScrollViewUWPImplementation(scrollViewer);
105
107
  scrollViewUWPImplementation.ScrollViewerSnapPointManager();
@@ -51,3 +51,8 @@ using namespace Windows::Foundation::Collections;
51
51
  #define _QUOTE(x) L#x
52
52
  #define QUOTE(x) _QUOTE(x)
53
53
  #define XAML_NAMESPACE_STR QUOTE(XAML_NAMESPACE)
54
+
55
+ #ifdef CPPWINRT_USE_LOADLIBRARYEXW
56
+ #define WINRT_IMPL_LoadLibraryW(name) \
57
+ WINRT_IMPL_LoadLibraryExW(name, nullptr, 0x00001000 /* LOAD_LIBRARY_SEARCH_DEFAULT_DIRS */)
58
+ #endif
@@ -84,7 +84,7 @@
84
84
  visitor.Visit( \
85
85
  &TStruct::member, \
86
86
  attributeId, \
87
- winrt::Microsoft::ReactNative::React##memberKind##Attribute{jsMemberName, jsModuleName}); \
87
+ winrt::Microsoft::ReactNative::React##memberKind##Attribute(jsMemberName, jsModuleName)); \
88
88
  }
89
89
 
90
90
  #define INTERNAL_REACT_MEMBER_3_ARGS(memberKind, member, jsMemberName) \
@@ -14,4 +14,13 @@
14
14
  <CppWinRTVersion Condition="'$(CppWinRTVersion)' == '' Or $([MSBuild]::VersionLessThan('$(CppWinRTVersion)', '2.0.211028.7'))">2.0.211028.7</CppWinRTVersion>
15
15
  </PropertyGroup>
16
16
 
17
+ <ItemDefinitionGroup Label="CppWinRT">
18
+ <ClCompile>
19
+ <PreprocessorDefinitions Condition="$([MSBuild]::VersionGreaterThanOrEquals('$(CppWinRTVersion)', '2.0.230524.3'))">
20
+ CPPWINRT_USE_LOADLIBRARYEXW;
21
+ %(PreprocessorDefinitions)
22
+ </PreprocessorDefinitions>
23
+ </ClCompile>
24
+ </ItemDefinitionGroup>
25
+
17
26
  </Project>
@@ -10,11 +10,11 @@
10
10
  -->
11
11
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
12
  <PropertyGroup>
13
- <ReactNativeWindowsVersion>0.72.4</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.72.6</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>72</ReactNativeWindowsMinor>
16
- <ReactNativeWindowsPatch>4</ReactNativeWindowsPatch>
16
+ <ReactNativeWindowsPatch>6</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
18
- <ReactNativeWindowsCommitId>2f12d588d6c668fa5b6de64232454d5fc31e5a82</ReactNativeWindowsCommitId>
18
+ <ReactNativeWindowsCommitId>30ecf04918029a8699096532c8b13d4ae7a4b4f3</ReactNativeWindowsCommitId>
19
19
  </PropertyGroup>
20
20
  </Project>
@@ -554,17 +554,20 @@ std::vector<std::unique_ptr<NativeModule>> InstanceImpl::GetDefaultNativeModules
554
554
  },
555
555
  nativeQueue));
556
556
 
557
- modules.push_back(std::make_unique<CxxNativeModule>(
558
- m_innerInstance,
559
- Microsoft::React::GetBlobModuleName(),
560
- [transitionalProps]() { return Microsoft::React::CreateBlobModule(transitionalProps); },
561
- nativeQueue));
557
+ // Use in case the host app provides its a non-Blob-compatilbe HTTP module.
558
+ if (!Microsoft::React::GetRuntimeOptionBool("Blob.DisableModule")) {
559
+ modules.push_back(std::make_unique<CxxNativeModule>(
560
+ m_innerInstance,
561
+ Microsoft::React::GetBlobModuleName(),
562
+ [transitionalProps]() { return Microsoft::React::CreateBlobModule(transitionalProps); },
563
+ nativeQueue));
562
564
 
563
- modules.push_back(std::make_unique<CxxNativeModule>(
564
- m_innerInstance,
565
- Microsoft::React::GetFileReaderModuleName(),
566
- [transitionalProps]() { return Microsoft::React::CreateFileReaderModule(transitionalProps); },
567
- nativeQueue));
565
+ modules.push_back(std::make_unique<CxxNativeModule>(
566
+ m_innerInstance,
567
+ Microsoft::React::GetFileReaderModuleName(),
568
+ [transitionalProps]() { return Microsoft::React::CreateFileReaderModule(transitionalProps); },
569
+ nativeQueue));
570
+ }
568
571
 
569
572
  modules.push_back(std::make_unique<CxxNativeModule>(
570
573
  m_innerInstance,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.72.4",
3
+ "version": "0.72.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "@react-native-community/cli": "11.3.5",
27
27
  "@react-native-community/cli-platform-android": "11.3.5",
28
28
  "@react-native-community/cli-platform-ios": "11.3.5",
29
- "@react-native-windows/cli": "0.72.1",
29
+ "@react-native-windows/cli": "0.72.2",
30
30
  "@react-native/assets": "1.0.0",
31
31
  "@react-native/assets-registry": "^0.72.0",
32
32
  "@react-native/codegen": "^0.72.6",