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.
@@ -16,7 +16,7 @@ const version: $ReadOnly<{
16
16
  }> = {
17
17
  major: 0,
18
18
  minor: 76,
19
- patch: 5,
19
+ patch: 6,
20
20
  prerelease: null,
21
21
  };
22
22
 
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(76),
26
- RCTVersionPatch: @(5),
26
+ RCTVersionPatch: @(6),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.76.5
1
+ VERSION_NAME=0.76.6
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
 
4
4
  android.useAndroidX=true
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 76,
20
- "patch", 5,
20
+ "patch", 6,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 76;
20
- int32_t Patch = 5;
20
+ int32_t Patch = 6;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
@@ -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", ModalHostViewSupportedOrientationsMaskWrapped{ .value = sourceProps.supportedOrientations }, {static_cast<ModalHostViewSupportedOrientationsMask>(ModalHostViewSupportedOrientations::Portrait)}).value),
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, ModalHostViewSupportedOrientationsMaskWrapped &wrapped) {
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
- wrapped.value |= ModalHostViewSupportedOrientations::Portrait;
289
+ result |= ModalHostViewSupportedOrientations::Portrait;
294
290
  continue;
295
291
  }
296
292
  if (item == "portrait-upside-down") {
297
- wrapped.value |= ModalHostViewSupportedOrientations::PortraitUpsideDown;
293
+ result |= ModalHostViewSupportedOrientations::PortraitUpsideDown;
298
294
  continue;
299
295
  }
300
296
  if (item == "landscape") {
301
- wrapped.value |= ModalHostViewSupportedOrientations::Landscape;
297
+ result |= ModalHostViewSupportedOrientations::Landscape;
302
298
  continue;
303
299
  }
304
300
  if (item == "landscape-left") {
305
- wrapped.value |= ModalHostViewSupportedOrientations::LandscapeLeft;
301
+ result |= ModalHostViewSupportedOrientations::LandscapeLeft;
306
302
  continue;
307
303
  }
308
304
  if (item == "landscape-right") {
309
- wrapped.value |= ModalHostViewSupportedOrientations::LandscapeRight;
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 ModalHostViewSupportedOrientationsMaskWrapped &wrapped) {
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 (wrapped.value & ModalHostViewSupportedOrientations::Portrait) {
316
+ if (value & ModalHostViewSupportedOrientations::Portrait) {
321
317
  result += "portrait" + separator;
322
318
  }
323
- if (wrapped.value & ModalHostViewSupportedOrientations::PortraitUpsideDown) {
319
+ if (value & ModalHostViewSupportedOrientations::PortraitUpsideDown) {
324
320
  result += "portrait-upside-down" + separator;
325
321
  }
326
- if (wrapped.value & ModalHostViewSupportedOrientations::Landscape) {
322
+ if (value & ModalHostViewSupportedOrientations::Landscape) {
327
323
  result += "landscape" + separator;
328
324
  }
329
- if (wrapped.value & ModalHostViewSupportedOrientations::LandscapeLeft) {
325
+ if (value & ModalHostViewSupportedOrientations::LandscapeLeft) {
330
326
  result += "landscape-left" + separator;
331
327
  }
332
- if (wrapped.value & ModalHostViewSupportedOrientations::LandscapeRight) {
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
 
@@ -15,6 +15,11 @@
15
15
  }
16
16
 
17
17
  - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
18
+ {
19
+ return [self bundleURL];
20
+ }
21
+
22
+ - (NSURL *)bundleURL
18
23
  {
19
24
  #if DEBUG
20
25
  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.76.5",
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.4",
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' ? null : NativeAnimatedModule,
433
+ Platform.OS !== 'ios' && Platform.OS !== 'macos' // [macOS]
434
+ ? null
435
+ : NativeAnimatedModule,
434
436
  );
435
437
  }
436
438
  return nativeEventEmitter;