react-native-macos 0.76.5 → 0.76.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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/renderer/components/rncore/Props.cpp +1 -1
- package/ReactCommon/react/renderer/components/rncore/Props.h +12 -16
- package/ReactCommon/react/renderer/components/rncore/States.h +26 -0
- package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/AppDelegate.mm +5 -0
- package/package.json +2 -2
- package/src/private/animated/NativeAnimatedHelper.js +3 -1
package/React/Base/RCTVersion.m
CHANGED
|
@@ -120,7 +120,7 @@ ModalHostViewProps::ModalHostViewProps(
|
|
|
120
120
|
hardwareAccelerated(convertRawProp(context, rawProps, "hardwareAccelerated", sourceProps.hardwareAccelerated, {false})),
|
|
121
121
|
visible(convertRawProp(context, rawProps, "visible", sourceProps.visible, {false})),
|
|
122
122
|
animated(convertRawProp(context, rawProps, "animated", sourceProps.animated, {false})),
|
|
123
|
-
supportedOrientations(convertRawProp(context, rawProps, "supportedOrientations",
|
|
123
|
+
supportedOrientations(convertRawProp(context, rawProps, "supportedOrientations", sourceProps.supportedOrientations, {static_cast<ModalHostViewSupportedOrientationsMask>(ModalHostViewSupportedOrientations::Portrait)})),
|
|
124
124
|
identifier(convertRawProp(context, rawProps, "identifier", sourceProps.identifier, {0}))
|
|
125
125
|
{}
|
|
126
126
|
SafeAreaViewProps::SafeAreaViewProps(
|
|
@@ -256,10 +256,6 @@ static inline std::string toString(const ModalHostViewPresentationStyle &value)
|
|
|
256
256
|
}
|
|
257
257
|
using ModalHostViewSupportedOrientationsMask = uint32_t;
|
|
258
258
|
|
|
259
|
-
struct ModalHostViewSupportedOrientationsMaskWrapped {
|
|
260
|
-
ModalHostViewSupportedOrientationsMask value;
|
|
261
|
-
};
|
|
262
|
-
|
|
263
259
|
enum class ModalHostViewSupportedOrientations: ModalHostViewSupportedOrientationsMask {
|
|
264
260
|
Portrait = 1 << 0,
|
|
265
261
|
PortraitUpsideDown = 1 << 1,
|
|
@@ -286,50 +282,50 @@ constexpr void operator|=(
|
|
|
286
282
|
lhs = lhs | static_cast<ModalHostViewSupportedOrientationsMask>(rhs);
|
|
287
283
|
}
|
|
288
284
|
|
|
289
|
-
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value,
|
|
285
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ModalHostViewSupportedOrientationsMask &result) {
|
|
290
286
|
auto items = std::vector<std::string>{value};
|
|
291
287
|
for (const auto &item : items) {
|
|
292
288
|
if (item == "portrait") {
|
|
293
|
-
|
|
289
|
+
result |= ModalHostViewSupportedOrientations::Portrait;
|
|
294
290
|
continue;
|
|
295
291
|
}
|
|
296
292
|
if (item == "portrait-upside-down") {
|
|
297
|
-
|
|
293
|
+
result |= ModalHostViewSupportedOrientations::PortraitUpsideDown;
|
|
298
294
|
continue;
|
|
299
295
|
}
|
|
300
296
|
if (item == "landscape") {
|
|
301
|
-
|
|
297
|
+
result |= ModalHostViewSupportedOrientations::Landscape;
|
|
302
298
|
continue;
|
|
303
299
|
}
|
|
304
300
|
if (item == "landscape-left") {
|
|
305
|
-
|
|
301
|
+
result |= ModalHostViewSupportedOrientations::LandscapeLeft;
|
|
306
302
|
continue;
|
|
307
303
|
}
|
|
308
304
|
if (item == "landscape-right") {
|
|
309
|
-
|
|
305
|
+
result |= ModalHostViewSupportedOrientations::LandscapeRight;
|
|
310
306
|
continue;
|
|
311
307
|
}
|
|
312
308
|
abort();
|
|
313
309
|
}
|
|
314
310
|
}
|
|
315
311
|
|
|
316
|
-
static inline std::string toString(const
|
|
312
|
+
static inline std::string toString(const ModalHostViewSupportedOrientationsMask &value) {
|
|
317
313
|
auto result = std::string{};
|
|
318
314
|
auto separator = std::string{", "};
|
|
319
315
|
|
|
320
|
-
if (
|
|
316
|
+
if (value & ModalHostViewSupportedOrientations::Portrait) {
|
|
321
317
|
result += "portrait" + separator;
|
|
322
318
|
}
|
|
323
|
-
if (
|
|
319
|
+
if (value & ModalHostViewSupportedOrientations::PortraitUpsideDown) {
|
|
324
320
|
result += "portrait-upside-down" + separator;
|
|
325
321
|
}
|
|
326
|
-
if (
|
|
322
|
+
if (value & ModalHostViewSupportedOrientations::Landscape) {
|
|
327
323
|
result += "landscape" + separator;
|
|
328
324
|
}
|
|
329
|
-
if (
|
|
325
|
+
if (value & ModalHostViewSupportedOrientations::LandscapeLeft) {
|
|
330
326
|
result += "landscape-left" + separator;
|
|
331
327
|
}
|
|
332
|
-
if (
|
|
328
|
+
if (value & ModalHostViewSupportedOrientations::LandscapeRight) {
|
|
333
329
|
result += "landscape-right" + separator;
|
|
334
330
|
}
|
|
335
331
|
if (!result.empty()) {
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
#ifdef ANDROID
|
|
12
12
|
#include <folly/dynamic.h>
|
|
13
|
+
#include <react/renderer/mapbuffer/MapBuffer.h>
|
|
14
|
+
#include <react/renderer/mapbuffer/MapBufferBuilder.h>
|
|
13
15
|
#endif
|
|
14
16
|
|
|
15
17
|
namespace facebook::react {
|
|
@@ -23,6 +25,9 @@ public:
|
|
|
23
25
|
folly::dynamic getDynamic() const {
|
|
24
26
|
return {};
|
|
25
27
|
};
|
|
28
|
+
MapBuffer getMapBuffer() const {
|
|
29
|
+
return MapBufferBuilder::EMPTY();
|
|
30
|
+
};
|
|
26
31
|
#endif
|
|
27
32
|
};
|
|
28
33
|
|
|
@@ -35,6 +40,9 @@ public:
|
|
|
35
40
|
folly::dynamic getDynamic() const {
|
|
36
41
|
return {};
|
|
37
42
|
};
|
|
43
|
+
MapBuffer getMapBuffer() const {
|
|
44
|
+
return MapBufferBuilder::EMPTY();
|
|
45
|
+
};
|
|
38
46
|
#endif
|
|
39
47
|
};
|
|
40
48
|
|
|
@@ -47,6 +55,9 @@ public:
|
|
|
47
55
|
folly::dynamic getDynamic() const {
|
|
48
56
|
return {};
|
|
49
57
|
};
|
|
58
|
+
MapBuffer getMapBuffer() const {
|
|
59
|
+
return MapBufferBuilder::EMPTY();
|
|
60
|
+
};
|
|
50
61
|
#endif
|
|
51
62
|
};
|
|
52
63
|
|
|
@@ -59,6 +70,9 @@ public:
|
|
|
59
70
|
folly::dynamic getDynamic() const {
|
|
60
71
|
return {};
|
|
61
72
|
};
|
|
73
|
+
MapBuffer getMapBuffer() const {
|
|
74
|
+
return MapBufferBuilder::EMPTY();
|
|
75
|
+
};
|
|
62
76
|
#endif
|
|
63
77
|
};
|
|
64
78
|
|
|
@@ -71,6 +85,9 @@ public:
|
|
|
71
85
|
folly::dynamic getDynamic() const {
|
|
72
86
|
return {};
|
|
73
87
|
};
|
|
88
|
+
MapBuffer getMapBuffer() const {
|
|
89
|
+
return MapBufferBuilder::EMPTY();
|
|
90
|
+
};
|
|
74
91
|
#endif
|
|
75
92
|
};
|
|
76
93
|
|
|
@@ -83,6 +100,9 @@ public:
|
|
|
83
100
|
folly::dynamic getDynamic() const {
|
|
84
101
|
return {};
|
|
85
102
|
};
|
|
103
|
+
MapBuffer getMapBuffer() const {
|
|
104
|
+
return MapBufferBuilder::EMPTY();
|
|
105
|
+
};
|
|
86
106
|
#endif
|
|
87
107
|
};
|
|
88
108
|
|
|
@@ -95,6 +115,9 @@ public:
|
|
|
95
115
|
folly::dynamic getDynamic() const {
|
|
96
116
|
return {};
|
|
97
117
|
};
|
|
118
|
+
MapBuffer getMapBuffer() const {
|
|
119
|
+
return MapBufferBuilder::EMPTY();
|
|
120
|
+
};
|
|
98
121
|
#endif
|
|
99
122
|
};
|
|
100
123
|
|
|
@@ -107,6 +130,9 @@ public:
|
|
|
107
130
|
folly::dynamic getDynamic() const {
|
|
108
131
|
return {};
|
|
109
132
|
};
|
|
133
|
+
MapBuffer getMapBuffer() const {
|
|
134
|
+
return MapBufferBuilder::EMPTY();
|
|
135
|
+
};
|
|
110
136
|
#endif
|
|
111
137
|
};
|
|
112
138
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-macos",
|
|
3
|
-
"version": "0.76.
|
|
3
|
+
"version": "0.76.6",
|
|
4
4
|
"description": "React Native for macOS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
},
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"@jest/create-cache-key-function": "^29.6.3",
|
|
114
|
-
"@react-native-mac/virtualized-lists": "0.76.
|
|
114
|
+
"@react-native-mac/virtualized-lists": "0.76.5",
|
|
115
115
|
"@react-native/assets-registry": "0.76.3",
|
|
116
116
|
"@react-native/codegen": "0.76.3",
|
|
117
117
|
"@react-native/community-cli-plugin": "0.76.3",
|
|
@@ -430,7 +430,9 @@ export default {
|
|
|
430
430
|
nativeEventEmitter = new NativeEventEmitter(
|
|
431
431
|
// T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior
|
|
432
432
|
// If you want to use the native module on other platforms, please remove this condition and test its behavior
|
|
433
|
-
Platform.OS !== 'ios'
|
|
433
|
+
Platform.OS !== 'ios' && Platform.OS !== 'macos' // [macOS]
|
|
434
|
+
? null
|
|
435
|
+
: NativeAnimatedModule,
|
|
434
436
|
);
|
|
435
437
|
}
|
|
436
438
|
return nativeEventEmitter;
|