react-native-windows 0.70.3 → 0.70.5
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.
- package/Libraries/Components/View/View.windows.js +6 -1
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +1 -7
- package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiRuntime.cpp +2 -0
- package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiRuntime.h +3 -3
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +2 -1
- package/PropertySheets/External/Microsoft.ReactNative.Cpp.Dependencies.props +1 -1
- package/PropertySheets/External/Microsoft.ReactNative.Cpp.ProjectReferences.props +3 -0
- package/PropertySheets/Generated/PackageVersion.g.props +2 -2
- package/PropertySheets/JSEngine.props +1 -2
- package/Shared/JSI/NapiJsiV8RuntimeHolder.h +2 -0
- package/Shared/V8JSIRuntimeHolder.h +2 -0
- package/package.json +1 -1
|
@@ -77,7 +77,7 @@ const View: React.AbstractComponent<
|
|
|
77
77
|
|
|
78
78
|
// [Windows
|
|
79
79
|
const childrenWithImportantForAccessibility = children => {
|
|
80
|
-
|
|
80
|
+
const updatedChildren = React.Children.map(children, child => {
|
|
81
81
|
if (React.isValidElement(child)) {
|
|
82
82
|
if (child.props.children) {
|
|
83
83
|
return React.cloneElement(child, {
|
|
@@ -92,6 +92,11 @@ const View: React.AbstractComponent<
|
|
|
92
92
|
}
|
|
93
93
|
return child;
|
|
94
94
|
});
|
|
95
|
+
if (updatedChildren.length == 1) {
|
|
96
|
+
return updatedChildren[0];
|
|
97
|
+
} else {
|
|
98
|
+
return updatedChildren;
|
|
99
|
+
}
|
|
95
100
|
};
|
|
96
101
|
// Windows]
|
|
97
102
|
|
|
@@ -743,6 +743,7 @@
|
|
|
743
743
|
<PackageReference Include="ReactNative.Hermes.Windows" Version="$(HermesVersion)" />
|
|
744
744
|
<PackageReference Include="$(WinUIPackageName)" Version="$(WinUIPackageVersion)" Condition="'$(OverrideWinUIPackage)'!='true'" />
|
|
745
745
|
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22000.194" />
|
|
746
|
+
<PackageReference Include="$(V8PackageName)" Version="$(V8Version)" Condition="'$(UseV8)' == 'true'" />
|
|
746
747
|
</ItemGroup>
|
|
747
748
|
<Choose>
|
|
748
749
|
<When Condition="'$(EnableSourceLink)' == 'true'">
|
|
@@ -753,13 +754,6 @@
|
|
|
753
754
|
</ItemGroup>
|
|
754
755
|
</When>
|
|
755
756
|
</Choose>
|
|
756
|
-
<Choose>
|
|
757
|
-
<When Condition="'$(UseV8)' == 'true'">
|
|
758
|
-
<ItemGroup>
|
|
759
|
-
<PackageReference Include="ReactNative.V8Jsi.Windows.UWP" Version="$(V8Version)" />
|
|
760
|
-
</ItemGroup>
|
|
761
|
-
</When>
|
|
762
|
-
</Choose>
|
|
763
757
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
764
758
|
<Import Project="$(ReactNativeWindowsDir)PropertySheets\FastBuild.targets" />
|
|
765
759
|
<Import Project="$(ReactNativeWindowsDir)PropertySheets\FixupRoslynCscWarnings.targets" />
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
#ifndef MICROSOFT_REACTNATIVE_JSI_NODEAPIJSIRUNTIME
|
|
6
6
|
#define MICROSOFT_REACTNATIVE_JSI_NODEAPIJSIRUNTIME
|
|
7
7
|
|
|
8
|
+
// Standard Library
|
|
9
|
+
#include <memory>
|
|
10
|
+
|
|
8
11
|
// JSI
|
|
9
12
|
#include <js_native_ext_api.h>
|
|
10
13
|
#include <jsi/jsi.h>
|
|
11
14
|
|
|
12
|
-
// Standard Library
|
|
13
|
-
#include <memory>
|
|
14
|
-
|
|
15
15
|
namespace Microsoft::JSI {
|
|
16
16
|
|
|
17
17
|
///
|
|
@@ -128,8 +128,9 @@
|
|
|
128
128
|
<ItemGroup>
|
|
129
129
|
<None Include="$(MSBuildThisFileDirectory)README.md" />
|
|
130
130
|
</ItemGroup>
|
|
131
|
-
<ItemGroup>
|
|
131
|
+
<ItemGroup Condition="'$(BuildMSRNCxx)' != 'false' and '$(RNExternalReferences)' != 'true'">
|
|
132
132
|
<ClCompile Include="$(MSBuildThisFileDirectory)JSI\NodeApiJsiRuntime.cpp">
|
|
133
|
+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
|
133
134
|
<ExcludedFromBuild Condition="'$(UseV8)' != 'true'">true</ExcludedFromBuild>
|
|
134
135
|
</ClCompile>
|
|
135
136
|
</ItemGroup>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
|
|
13
13
|
<PropertyGroup Label="CppWinRT">
|
|
14
|
-
<CppWinRTVersion>2.0.211028.7</CppWinRTVersion>
|
|
14
|
+
<CppWinRTVersion Condition="'$(CppWinRTVersion)' == '' Or $([MSBuild]::VersionLessThan('$(CppWinRTVersion)', '2.0.211028.7'))">2.0.211028.7</CppWinRTVersion>
|
|
15
15
|
</PropertyGroup>
|
|
16
16
|
|
|
17
17
|
</Project>
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
Licensed under the MIT License.
|
|
5
5
|
-->
|
|
6
6
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
7
|
+
<PropertyGroup>
|
|
8
|
+
<RNExternalReferences>true</RNExternalReferences>
|
|
9
|
+
</PropertyGroup>
|
|
7
10
|
<!-- To avoid having these references show in in Visual Studio which ignores conditions on items we have to put the source references in source. -->
|
|
8
11
|
<ImportGroup Label="Shared">
|
|
9
12
|
<Import Project="$(ReactNativeWindowsDir)\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.vcxitems"
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.70.
|
|
13
|
+
<ReactNativeWindowsVersion>0.70.5</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>70</ReactNativeWindowsMinor>
|
|
16
|
-
<ReactNativeWindowsPatch>
|
|
16
|
+
<ReactNativeWindowsPatch>5</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
|
|
18
18
|
</PropertyGroup>
|
|
19
19
|
</Project>
|
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
<EnableDevServerHBCBundles Condition="'$(EnableDevServerHBCBundles)' == ''">false</EnableDevServerHBCBundles>
|
|
19
19
|
|
|
20
20
|
<UseV8 Condition="'$(UseV8)' == ''">false</UseV8>
|
|
21
|
-
<V8Version Condition="'$(V8Version)' == ''">0.
|
|
21
|
+
<V8Version Condition="'$(V8Version)' == ''">0.70.1</V8Version>
|
|
22
22
|
<V8PackageName>ReactNative.V8Jsi.Windows</V8PackageName>
|
|
23
23
|
<V8PackageName Condition="'$(V8AppPlatform)' != 'win32'">$(V8PackageName).UWP</V8PackageName>
|
|
24
|
-
<V8Package>$(NuGetPackageRoot)\$(V8PackageName).$(V8Version)</V8Package>
|
|
25
24
|
</PropertyGroup>
|
|
26
25
|
|
|
27
26
|
</Project>
|