react-native-windows 0.69.0-preview.4 → 0.69.0-preview.7
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/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Utilities/codegenNativeComponent.js +5 -6
- package/Libraries/Utilities/useColorScheme.js +9 -15
- package/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp +41 -27
- package/Microsoft.ReactNative.Cxx/JSI/JsiApiContext.cpp +17 -5
- package/Microsoft.ReactNative.Cxx/JSI/JsiApiContext.h +36 -7
- package/Microsoft.ReactNative.Cxx/JSValueWriter.h +1 -1
- package/Microsoft.ReactNative.Cxx/ReactPromise.cpp +21 -1
- package/Microsoft.ReactNative.Cxx/ReactPromise.h +27 -0
- package/Microsoft.ReactNative.Cxx/TurboModuleProvider.h +1 -1
- package/PropertySheets/Generated/PackageVersion.g.props +1 -1
- package/PropertySheets/JSEngine.props +1 -1
- package/Shared/InspectorPackagerConnection.cpp +2 -2
- package/package.json +14 -12
|
@@ -34,15 +34,14 @@ function codegenNativeComponent<Props>(
|
|
|
34
34
|
componentName: string,
|
|
35
35
|
options?: Options,
|
|
36
36
|
): NativeComponentType<Props> {
|
|
37
|
-
const errorMessage =
|
|
38
|
-
"Native Component '" +
|
|
39
|
-
componentName +
|
|
40
|
-
"' that calls codegenNativeComponent was not code generated at build time. Please check its definition.";
|
|
41
37
|
if (global.RN$Bridgeless === true) {
|
|
38
|
+
const errorMessage =
|
|
39
|
+
"Native Component '" +
|
|
40
|
+
componentName +
|
|
41
|
+
"' that calls codegenNativeComponent was not code generated at build time. Please check its definition.";
|
|
42
42
|
console.error(errorMessage);
|
|
43
|
-
} else {
|
|
44
|
-
console.warn(errorMessage);
|
|
45
43
|
}
|
|
44
|
+
|
|
46
45
|
let componentNameInUse =
|
|
47
46
|
options && options.paperComponentName != null
|
|
48
47
|
? options.paperComponentName
|
|
@@ -8,24 +8,18 @@
|
|
|
8
8
|
* @flow strict-local
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
'use strict';
|
|
12
|
+
|
|
13
|
+
import {useSyncExternalStore} from 'use-sync-external-store/shim';
|
|
13
14
|
import Appearance from './Appearance';
|
|
14
15
|
import type {ColorSchemeName} from './NativeAppearance';
|
|
15
16
|
|
|
16
17
|
export default function useColorScheme(): ?ColorSchemeName {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
appearanceSubscription.remove();
|
|
24
|
-
};
|
|
25
|
-
},
|
|
26
|
-
}),
|
|
27
|
-
[],
|
|
18
|
+
return useSyncExternalStore(
|
|
19
|
+
callback => {
|
|
20
|
+
const appearanceSubscription = Appearance.addChangeListener(callback);
|
|
21
|
+
return () => appearanceSubscription.remove();
|
|
22
|
+
},
|
|
23
|
+
() => Appearance.getColorScheme(),
|
|
28
24
|
);
|
|
29
|
-
|
|
30
|
-
return useSubscription(subscription);
|
|
31
25
|
}
|
|
@@ -115,6 +115,12 @@ inline float ToRadians(const winrt::Microsoft::ReactNative::JSValue &value) {
|
|
|
115
115
|
return static_cast<float>(num); // assume suffix is "rad"
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
static void MultiplyInto(
|
|
119
|
+
winrt::Windows::Foundation::Numerics::float4x4 &m,
|
|
120
|
+
winrt::Windows::Foundation::Numerics::float4x4 o) {
|
|
121
|
+
m = o * m;
|
|
122
|
+
}
|
|
123
|
+
|
|
118
124
|
void FrameworkElementViewManager::GetNativeProps(const winrt::Microsoft::ReactNative::IJSValueWriter &writer) const {
|
|
119
125
|
Super::GetNativeProps(writer);
|
|
120
126
|
|
|
@@ -181,52 +187,60 @@ bool FrameworkElementViewManager::UpdateProperty(
|
|
|
181
187
|
innerMatrix.m42 = static_cast<float>(innerValue[13].AsDouble());
|
|
182
188
|
innerMatrix.m43 = static_cast<float>(innerValue[14].AsDouble());
|
|
183
189
|
innerMatrix.m44 = static_cast<float>(innerValue[15].AsDouble());
|
|
184
|
-
transformMatrix
|
|
190
|
+
MultiplyInto(transformMatrix, innerMatrix);
|
|
185
191
|
} else if (transformType == "perspective") {
|
|
186
192
|
auto innerMatrix = winrt::Windows::Foundation::Numerics::float4x4::identity();
|
|
187
193
|
innerMatrix.m34 = -1 / innerValue.AsSingle();
|
|
188
|
-
transformMatrix
|
|
194
|
+
MultiplyInto(transformMatrix, innerMatrix);
|
|
189
195
|
} else if (transformType == "rotateX") {
|
|
190
|
-
|
|
191
|
-
|
|
196
|
+
MultiplyInto(
|
|
197
|
+
transformMatrix,
|
|
198
|
+
winrt::Windows::Foundation::Numerics::make_float4x4_rotation_x(ToRadians(innerValue)));
|
|
192
199
|
} else if (transformType == "rotateY") {
|
|
193
|
-
|
|
194
|
-
|
|
200
|
+
MultiplyInto(
|
|
201
|
+
transformMatrix,
|
|
202
|
+
winrt::Windows::Foundation::Numerics::make_float4x4_rotation_y(ToRadians(innerValue)));
|
|
195
203
|
} else if (transformType == "rotate" || transformType == "rotateZ") {
|
|
196
|
-
|
|
197
|
-
|
|
204
|
+
MultiplyInto(
|
|
205
|
+
transformMatrix,
|
|
206
|
+
winrt::Windows::Foundation::Numerics::make_float4x4_rotation_z(ToRadians(innerValue)));
|
|
198
207
|
} else if (transformType == "scale") {
|
|
199
|
-
|
|
208
|
+
MultiplyInto(
|
|
209
|
+
transformMatrix,
|
|
200
210
|
winrt::Windows::Foundation::Numerics::make_float4x4_scale(
|
|
201
|
-
|
|
211
|
+
innerValue.AsSingle(), innerValue.AsSingle(), 1));
|
|
202
212
|
} else if (transformType == "scaleX") {
|
|
203
|
-
|
|
204
|
-
|
|
213
|
+
MultiplyInto(
|
|
214
|
+
transformMatrix,
|
|
215
|
+
winrt::Windows::Foundation::Numerics::make_float4x4_scale(innerValue.AsSingle(), 1, 1));
|
|
205
216
|
} else if (transformType == "scaleY") {
|
|
206
|
-
|
|
207
|
-
|
|
217
|
+
MultiplyInto(
|
|
218
|
+
transformMatrix,
|
|
219
|
+
winrt::Windows::Foundation::Numerics::make_float4x4_scale(1, innerValue.AsSingle(), 1));
|
|
208
220
|
} else if (transformType == "translate") {
|
|
209
221
|
auto ¶ms = innerValue.AsArray();
|
|
210
|
-
|
|
211
|
-
transformMatrix
|
|
222
|
+
MultiplyInto(
|
|
223
|
+
transformMatrix,
|
|
212
224
|
winrt::Windows::Foundation::Numerics::make_float4x4_translation(
|
|
213
|
-
params[0].AsSingle(), params[1].AsSingle(), params.size() > 2 ? params[2].AsSingle() : 0.f);
|
|
225
|
+
params[0].AsSingle(), params[1].AsSingle(), params.size() > 2 ? params[2].AsSingle() : 0.f));
|
|
214
226
|
} else if (transformType == "translateX") {
|
|
215
|
-
|
|
216
|
-
|
|
227
|
+
MultiplyInto(
|
|
228
|
+
transformMatrix,
|
|
229
|
+
winrt::Windows::Foundation::Numerics::make_float4x4_translation(innerValue.AsSingle(), 0.f, 0.f));
|
|
217
230
|
} else if (transformType == "translateY") {
|
|
218
|
-
|
|
219
|
-
|
|
231
|
+
MultiplyInto(
|
|
232
|
+
transformMatrix,
|
|
233
|
+
winrt::Windows::Foundation::Numerics::make_float4x4_translation(0.f, innerValue.AsSingle(), 0.f));
|
|
220
234
|
} else if (transformType == "skewX") {
|
|
221
|
-
|
|
222
|
-
transformMatrix
|
|
235
|
+
MultiplyInto(
|
|
236
|
+
transformMatrix,
|
|
223
237
|
winrt::Windows::Foundation::Numerics::float4x4(
|
|
224
|
-
winrt::Windows::Foundation::Numerics::make_float3x2_skew(innerValue.AsSingle(), 0.f));
|
|
238
|
+
winrt::Windows::Foundation::Numerics::make_float3x2_skew(innerValue.AsSingle(), 0.f)));
|
|
225
239
|
} else if (transformType == "skewY") {
|
|
226
|
-
|
|
227
|
-
transformMatrix
|
|
240
|
+
MultiplyInto(
|
|
241
|
+
transformMatrix,
|
|
228
242
|
winrt::Windows::Foundation::Numerics::float4x4(
|
|
229
|
-
winrt::Windows::Foundation::Numerics::make_float3x2_skew(0.f, innerValue.AsSingle()));
|
|
243
|
+
winrt::Windows::Foundation::Numerics::make_float3x2_skew(0.f, innerValue.AsSingle())));
|
|
230
244
|
}
|
|
231
245
|
}
|
|
232
246
|
}
|
|
@@ -10,16 +10,19 @@ extern "C" IMAGE_DOS_HEADER __ImageBase;
|
|
|
10
10
|
|
|
11
11
|
namespace winrt::Microsoft::ReactNative {
|
|
12
12
|
|
|
13
|
-
//
|
|
14
|
-
// If it is not found, then create it and store it in the context.Properties().
|
|
15
|
-
//
|
|
16
|
-
|
|
13
|
+
// Try to get JSI Runtime for the current JS dispatcher thread.
|
|
14
|
+
// If it is not found, then create it based on context JSI runtime and store it in the context.Properties().
|
|
15
|
+
// The function returns nullptr if the current context does not have JSI runtime.
|
|
16
|
+
// It makes sure that the JSI runtime holder is removed when the instance is unloaded.
|
|
17
|
+
facebook::jsi::Runtime *TryGetOrCreateContextRuntime(ReactContext const &context) noexcept {
|
|
17
18
|
ReactDispatcher jsDispatcher = context.JSDispatcher();
|
|
18
19
|
VerifyElseCrashSz(jsDispatcher.HasThreadAccess(), "Must be in JS thread");
|
|
19
20
|
|
|
20
21
|
// The JSI runtime is not available if we do Web debugging when JS is running in web browser.
|
|
21
22
|
JsiRuntime abiJsiRuntime = context.Handle().JSRuntime().as<JsiRuntime>();
|
|
22
|
-
|
|
23
|
+
if (!abiJsiRuntime) {
|
|
24
|
+
return nullptr;
|
|
25
|
+
}
|
|
23
26
|
|
|
24
27
|
// See if the JSI runtime was previously created.
|
|
25
28
|
JsiAbiRuntime *runtime = JsiAbiRuntime::GetFromJsiRuntime(abiJsiRuntime);
|
|
@@ -51,6 +54,15 @@ facebook::jsi::Runtime &GetOrCreateContextRuntime(ReactContext const &context) n
|
|
|
51
54
|
});
|
|
52
55
|
}
|
|
53
56
|
|
|
57
|
+
return runtime;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Calls TryGetOrCreateContextRuntime to get JSI runtime.
|
|
61
|
+
// It crashes when TryGetOrCreateContextRuntime returns null.
|
|
62
|
+
// Note: deprecated in favor of TryGetOrCreateContextRuntime.
|
|
63
|
+
[[deprecated]] facebook::jsi::Runtime &GetOrCreateContextRuntime(ReactContext const &context) noexcept {
|
|
64
|
+
facebook::jsi::Runtime *runtime = TryGetOrCreateContextRuntime(context);
|
|
65
|
+
VerifyElseCrashSz(runtime, "JSI runtime is not available");
|
|
54
66
|
return *runtime;
|
|
55
67
|
}
|
|
56
68
|
|
|
@@ -7,26 +7,55 @@
|
|
|
7
7
|
|
|
8
8
|
#include "../ReactContext.h"
|
|
9
9
|
#include "JsiAbiApi.h"
|
|
10
|
+
#include "ReactPromise.h"
|
|
10
11
|
|
|
11
12
|
namespace winrt::Microsoft::ReactNative {
|
|
12
13
|
|
|
13
|
-
//
|
|
14
|
-
// If it is not found, then create it and store it in the context.Properties().
|
|
15
|
-
//
|
|
16
|
-
|
|
14
|
+
// Try to get JSI Runtime for the current JS dispatcher thread.
|
|
15
|
+
// If it is not found, then create it based on context JSI runtime and store it in the context.Properties().
|
|
16
|
+
// The function returns nullptr if the current context does not have JSI runtime.
|
|
17
|
+
// It makes sure that the JSI runtime holder is removed when the instance is unloaded.
|
|
18
|
+
facebook::jsi::Runtime *TryGetOrCreateContextRuntime(ReactContext const &context) noexcept;
|
|
19
|
+
|
|
20
|
+
// Calls TryGetOrCreateContextRuntime to get JSI runtime.
|
|
21
|
+
// It crashes when TryGetOrCreateContextRuntime returns null.
|
|
22
|
+
// Note: deprecated in favor of TryGetOrCreateContextRuntime.
|
|
23
|
+
[[deprecated]] facebook::jsi::Runtime &GetOrCreateContextRuntime(ReactContext const &context) noexcept;
|
|
17
24
|
|
|
18
25
|
// Call provided lambda with the facebook::jsi::Runtime& parameter.
|
|
19
26
|
// For example: ExecuteJsi(context, [](facebook::jsi::Runtime& runtime){...})
|
|
20
27
|
// The code is executed synchronously if it is already in JSDispatcher, or asynchronously otherwise.
|
|
21
28
|
template <class TCodeWithRuntime>
|
|
22
|
-
void ExecuteJsi(ReactContext const &context, TCodeWithRuntime const &code) {
|
|
29
|
+
void ExecuteJsi(ReactContext const &context, TCodeWithRuntime const &code, ReactPromise<void> *callStatus = nullptr) {
|
|
23
30
|
ReactDispatcher jsDispatcher = context.JSDispatcher();
|
|
31
|
+
auto callCode = [](ReactContext const &context, TCodeWithRuntime const &code, ReactPromise<void> *callStatus) {
|
|
32
|
+
facebook::jsi::Runtime *runtime = TryGetOrCreateContextRuntime(context);
|
|
33
|
+
if (runtime) {
|
|
34
|
+
code(*runtime);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Report status of the call
|
|
38
|
+
if (callStatus) {
|
|
39
|
+
if (runtime) {
|
|
40
|
+
callStatus->Resolve();
|
|
41
|
+
} else {
|
|
42
|
+
callStatus->Reject("No JSI runtime");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
24
47
|
if (jsDispatcher.HasThreadAccess()) {
|
|
25
48
|
// Execute immediately if we are in JS thread.
|
|
26
|
-
|
|
49
|
+
callCode(context, code, callStatus);
|
|
27
50
|
} else {
|
|
28
51
|
// Otherwise, schedule work in JS thread.
|
|
29
|
-
jsDispatcher.Post([
|
|
52
|
+
jsDispatcher.Post([callCode,
|
|
53
|
+
context,
|
|
54
|
+
code,
|
|
55
|
+
callStatus = callStatus ? std::make_unique<ReactPromise<void>>(*callStatus)
|
|
56
|
+
: std::unique_ptr<ReactPromise<void>>(nullptr)]() noexcept {
|
|
57
|
+
callCode(context, code, callStatus.get());
|
|
58
|
+
});
|
|
30
59
|
}
|
|
31
60
|
}
|
|
32
61
|
|
|
@@ -287,7 +287,7 @@ inline JSValueArgWriter MakeJSValueWriter(T &&argWriter) noexcept {
|
|
|
287
287
|
|
|
288
288
|
template <class... TArgs>
|
|
289
289
|
inline JSValueArgWriter MakeJSValueWriter(TArgs &&...args) noexcept {
|
|
290
|
-
return [&args...](
|
|
290
|
+
return [&args...]([[maybe_unused]] IJSValueWriter const &writer) noexcept { (WriteValue(writer, args), ...); };
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
} // namespace winrt::Microsoft::ReactNative
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
#include "pch.h"
|
|
8
8
|
#include "ReactPromise.h"
|
|
9
|
-
#include "JSValueWriter.h"
|
|
10
9
|
|
|
11
10
|
namespace winrt::Microsoft::ReactNative {
|
|
12
11
|
|
|
@@ -105,6 +104,27 @@ bool ReactPromiseBase::TrySetState(State newState) const noexcept {
|
|
|
105
104
|
return false;
|
|
106
105
|
}
|
|
107
106
|
|
|
107
|
+
/*static*/ MethodResultCallback ReactPromiseBase::GetRejectResultCallback(
|
|
108
|
+
std::function<void(ReactError const &)> const &reject) noexcept {
|
|
109
|
+
return [reject](IJSValueWriter const &outputWriter) noexcept {
|
|
110
|
+
winrt::com_ptr<JSValueTreeWriter> writer = outputWriter.as<JSValueTreeWriter>();
|
|
111
|
+
JSValue jsValue = writer->TakeValue();
|
|
112
|
+
ReactError err{};
|
|
113
|
+
err.Code = jsValue.AsArray()[0].AsObject()[ErrorMapKeyCode].AsString();
|
|
114
|
+
err.Message = jsValue.AsArray()[0].AsObject()[ErrorMapKeyMessage].AsString();
|
|
115
|
+
err.UserInfo = jsValue.AsArray()[0].AsObject()[ErrorMapKeyUserInfo].AsObject().Copy();
|
|
116
|
+
reject(err);
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
ReactPromise<void>::ReactPromise(
|
|
121
|
+
std::function<void()> const &resolve,
|
|
122
|
+
std::function<void(ReactError const &)> const &reject) noexcept
|
|
123
|
+
: ReactPromiseBase(
|
|
124
|
+
winrt::make<JSValueTreeWriter>(),
|
|
125
|
+
[resolve](IJSValueWriter const & /*outputWriter*/) noexcept { resolve(); },
|
|
126
|
+
GetRejectResultCallback(reject)) {}
|
|
127
|
+
|
|
108
128
|
// Successfully resolve the ReactPromise<void>.
|
|
109
129
|
void ReactPromise<void>::Resolve() const noexcept {
|
|
110
130
|
if (TrySetState(State::Resolved) && m_resolve) {
|
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
// vnext/Microsoft.ReactNative.Cxx/README.md
|
|
6
6
|
|
|
7
7
|
#pragma once
|
|
8
|
+
#include <functional>
|
|
9
|
+
#include "JSValueReader.h"
|
|
10
|
+
#include "JSValueTreeReader.h"
|
|
11
|
+
#include "JSValueTreeWriter.h"
|
|
12
|
+
#include "JSValueWriter.h"
|
|
8
13
|
#include "ReactError.h"
|
|
9
14
|
#include "winrt/Microsoft.ReactNative.h"
|
|
10
15
|
|
|
@@ -35,6 +40,7 @@ struct ReactPromiseBase {
|
|
|
35
40
|
|
|
36
41
|
protected:
|
|
37
42
|
bool TrySetState(State newState) const noexcept;
|
|
43
|
+
static MethodResultCallback GetRejectResultCallback(std::function<void(ReactError const &)> const &reject) noexcept;
|
|
38
44
|
|
|
39
45
|
protected:
|
|
40
46
|
const std::shared_ptr<std::atomic<State>> m_state;
|
|
@@ -47,6 +53,10 @@ template <class T>
|
|
|
47
53
|
struct ReactPromise : ReactPromiseBase {
|
|
48
54
|
using ReactPromiseBase::ReactPromiseBase;
|
|
49
55
|
|
|
56
|
+
ReactPromise(
|
|
57
|
+
std::function<void(T const &)> const &resolve,
|
|
58
|
+
std::function<void(ReactError const &)> const &reject) noexcept;
|
|
59
|
+
|
|
50
60
|
// Successfully resolve the IReactPromise with an optional value.
|
|
51
61
|
void Resolve(T const &value) const noexcept;
|
|
52
62
|
};
|
|
@@ -55,10 +65,27 @@ template <>
|
|
|
55
65
|
struct ReactPromise<void> : ReactPromiseBase {
|
|
56
66
|
using ReactPromiseBase::ReactPromiseBase;
|
|
57
67
|
|
|
68
|
+
ReactPromise(std::function<void()> const &resolve, std::function<void(ReactError const &)> const &reject) noexcept;
|
|
69
|
+
|
|
58
70
|
// Successfully resolve the IReactPromise with an optional value.
|
|
59
71
|
void Resolve() const noexcept;
|
|
60
72
|
};
|
|
61
73
|
|
|
74
|
+
template <class T>
|
|
75
|
+
ReactPromise<T>::ReactPromise(
|
|
76
|
+
std::function<void(T const &)> const &resolve,
|
|
77
|
+
std::function<void(ReactError const &)> const &reject) noexcept
|
|
78
|
+
: ReactPromiseBase(
|
|
79
|
+
winrt::make<JSValueTreeWriter>(),
|
|
80
|
+
[resolve](IJSValueWriter const &outputWriter) noexcept {
|
|
81
|
+
winrt::com_ptr<JSValueTreeWriter> writer = outputWriter.as<JSValueTreeWriter>();
|
|
82
|
+
auto reader = winrt::make<JSValueTreeReader>(writer->TakeValue());
|
|
83
|
+
T result{};
|
|
84
|
+
ReadArgs(reader, result);
|
|
85
|
+
resolve(result);
|
|
86
|
+
},
|
|
87
|
+
GetRejectResultCallback(reject)) {}
|
|
88
|
+
|
|
62
89
|
// Successfully resolve the ReactPromise with an optional value.
|
|
63
90
|
template <class T>
|
|
64
91
|
void ReactPromise<T>::Resolve(T const &value) const noexcept {
|
|
@@ -23,7 +23,7 @@ void AddTurboModuleProvider(IReactPackageBuilder const &packageBuilder, std::wst
|
|
|
23
23
|
IJsiHostObject abiTurboModule{nullptr};
|
|
24
24
|
// We expect the initializer to be called immediately for TurboModules
|
|
25
25
|
moduleBuilder.AddInitializer([&abiTurboModule](IReactContext const &context) mutable {
|
|
26
|
-
|
|
26
|
+
TryGetOrCreateContextRuntime(ReactContext{context}); // Ensure the JSI runtime is created.
|
|
27
27
|
auto callInvoker = MakeAbiCallInvoker(context.JSDispatcher());
|
|
28
28
|
auto turboModule = std::make_shared<TTurboModule>(callInvoker);
|
|
29
29
|
abiTurboModule = winrt::make<JsiHostObjectWrapper>(std::move(turboModule));
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.69.0-preview.
|
|
13
|
+
<ReactNativeWindowsVersion>0.69.0-preview.7</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>69</ReactNativeWindowsMinor>
|
|
16
16
|
<ReactNativeWindowsPatch>0</ReactNativeWindowsPatch>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<!-- Enabling this will (1) Include hermes glues in the Microsoft.ReactNative binaries AND (2) Make hermes the default engine -->
|
|
9
9
|
<UseHermes Condition="'$(UseHermes)' == ''">false</UseHermes>
|
|
10
10
|
<!-- This will be true if (1) the client want to use hermes by setting UseHermes to true OR (2) We are building for UWP where dynamic switching is enabled -->
|
|
11
|
-
<HermesVersion Condition="'$(HermesVersion)' == ''">0.
|
|
11
|
+
<HermesVersion Condition="'$(HermesVersion)' == ''">0.12.1</HermesVersion>
|
|
12
12
|
<HermesPackage Condition="'$(HermesPackage)' == '' And Exists('$(PkgReactNative_Hermes_Windows)')">$(PkgReactNative_Hermes_Windows)</HermesPackage>
|
|
13
13
|
<HermesPackage Condition="'$(HermesPackage)' == ''">$(NuGetPackageRoot)\ReactNative.Hermes.Windows\$(HermesVersion)</HermesPackage>
|
|
14
14
|
<EnableHermesInspectorInReleaseFlavor Condition="'$(EnableHermesInspectorInReleaseFlavor)' == ''">false</EnableHermesInspectorInReleaseFlavor>
|
|
@@ -86,8 +86,8 @@ struct InspectorProtocol {
|
|
|
86
86
|
for (const facebook::react::InspectorPage2 &page : pages) {
|
|
87
87
|
folly::dynamic pageDyn = folly::dynamic::object;
|
|
88
88
|
pageDyn["id"] = page.id;
|
|
89
|
-
pageDyn["title"] =
|
|
90
|
-
pageDyn["vm"] =
|
|
89
|
+
pageDyn["title"] = page.title;
|
|
90
|
+
pageDyn["vm"] = page.vm;
|
|
91
91
|
|
|
92
92
|
pageDyn["isLastBundleDownloadSuccess"] = bundleStatus.m_isLastDownloadSucess;
|
|
93
93
|
pageDyn["bundleUpdateTimestamp"] = bundleStatus.m_updateTimestamp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.69.0-preview.
|
|
3
|
+
"version": "0.69.0-preview.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/runtime": "^7.0.0",
|
|
25
25
|
"@jest/create-cache-key-function": "^27.0.1",
|
|
26
|
-
"@react-native-community/cli": "^8.0.0
|
|
27
|
-
"@react-native-community/cli-platform-android": "^8.0.0
|
|
28
|
-
"@react-native-community/cli-platform-ios": "^8.0.0
|
|
26
|
+
"@react-native-community/cli": "^8.0.0",
|
|
27
|
+
"@react-native-community/cli-platform-android": "^8.0.0",
|
|
28
|
+
"@react-native-community/cli-platform-ios": "^8.0.0",
|
|
29
29
|
"@react-native-windows/cli": "0.69.0-preview.1",
|
|
30
|
-
"@react-native-windows/virtualized-list": "0.69.0-preview.
|
|
30
|
+
"@react-native-windows/virtualized-list": "0.69.0-preview.3",
|
|
31
31
|
"@react-native/assets": "1.0.0",
|
|
32
32
|
"@react-native/normalize-color": "2.0.0",
|
|
33
33
|
"@react-native/polyfills": "2.0.0",
|
|
@@ -39,22 +39,24 @@
|
|
|
39
39
|
"invariant": "^2.2.4",
|
|
40
40
|
"jsc-android": "^250230.2.1",
|
|
41
41
|
"memoize-one": "^5.0.0",
|
|
42
|
-
"metro-react-native-babel-transformer": "0.70.
|
|
43
|
-
"metro-runtime": "0.70.
|
|
44
|
-
"metro-source-map": "0.70.
|
|
42
|
+
"metro-react-native-babel-transformer": "0.70.3",
|
|
43
|
+
"metro-runtime": "0.70.3",
|
|
44
|
+
"metro-source-map": "0.70.3",
|
|
45
|
+
"mkdirp": "^0.5.1",
|
|
45
46
|
"nullthrows": "^1.1.1",
|
|
46
47
|
"pretty-format": "^26.5.2",
|
|
47
48
|
"promise": "^8.0.3",
|
|
48
49
|
"react-devtools-core": "4.24.0",
|
|
49
|
-
"react-native-codegen": "^0.
|
|
50
|
+
"react-native-codegen": "^0.69.1",
|
|
50
51
|
"react-native-gradle-plugin": "^0.0.7",
|
|
51
52
|
"react-refresh": "^0.4.0",
|
|
52
53
|
"react-shallow-renderer": "16.14.1",
|
|
53
54
|
"regenerator-runtime": "^0.13.2",
|
|
54
55
|
"scheduler": "^0.21.0",
|
|
56
|
+
"shelljs": "^0.8.5",
|
|
55
57
|
"source-map-support": "^0.5.19",
|
|
56
58
|
"stacktrace-parser": "^0.1.3",
|
|
57
|
-
"use-
|
|
59
|
+
"use-sync-external-store": "^1.0.0",
|
|
58
60
|
"whatwg-fetch": "^3.0.0",
|
|
59
61
|
"ws": "^6.1.4"
|
|
60
62
|
},
|
|
@@ -75,7 +77,7 @@
|
|
|
75
77
|
"metro-config": "^0.70.1",
|
|
76
78
|
"prettier": "^2.4.1",
|
|
77
79
|
"react": "18.0.0",
|
|
78
|
-
"react-native": "0.69.0-rc.
|
|
80
|
+
"react-native": "0.69.0-rc.6",
|
|
79
81
|
"react-native-platform-override": "^1.6.11",
|
|
80
82
|
"react-refresh": "^0.4.0",
|
|
81
83
|
"react-shallow-renderer": "16.14.1",
|
|
@@ -83,7 +85,7 @@
|
|
|
83
85
|
},
|
|
84
86
|
"peerDependencies": {
|
|
85
87
|
"react": "18.0.0",
|
|
86
|
-
"react-native": "0.69.0-rc.
|
|
88
|
+
"react-native": "0.69.0-rc.6"
|
|
87
89
|
},
|
|
88
90
|
"beachball": {
|
|
89
91
|
"defaultNpmTag": "preview",
|