react-native-macos 0.81.1 → 0.81.3

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.
@@ -17,6 +17,6 @@ export const version: $ReadOnly<{
17
17
  }> = {
18
18
  major: 0,
19
19
  minor: 81,
20
- patch: 1,
20
+ patch: 3,
21
21
  prerelease: null,
22
22
  };
@@ -18,7 +18,7 @@
18
18
 
19
19
  NS_ASSUME_NONNULL_BEGIN
20
20
 
21
- @interface RCTWrappedTextView : RCTPlatformView <RCTBackedTextInputViewProtocol>
21
+ @interface RCTWrappedTextView : RCTPlatformView <RCTBackedTextInputViewProtocol, RCTBackedTextInputDelegate, NSTextViewDelegate> // [macOS]
22
22
 
23
23
  @property (nonatomic, weak) id<RCTBackedTextInputDelegate> textInputDelegate;
24
24
  @property (assign) BOOL hideVerticalScrollIndicator;
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(81),
26
- RCTVersionPatch: @(1),
26
+ RCTVersionPatch: @(3),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -465,7 +465,7 @@
465
465
  // right after the semaphore signals.
466
466
 
467
467
  // Atomic variant of `_waitingForMountingStageOnMainQueue = YES;`
468
- atomic_fetch_or(&_waitingForMountingStageOnMainQueue, 1);
468
+ atomic_store(&_waitingForMountingStageOnMainQueue, 1); // [macOS] C++23 compatibility
469
469
  }
470
470
 
471
471
  dispatch_semaphore_t semaphore;
@@ -488,7 +488,7 @@
488
488
  auto timeoutOccurred = dispatch_semaphore_wait(semaphore, dispatch_time(DISPATCH_TIME_NOW, timeout * NSEC_PER_SEC));
489
489
 
490
490
  // Atomic equivalent of `_waitingForMountingStageOnMainQueue = NO;`.
491
- atomic_fetch_and(&_waitingForMountingStageOnMainQueue, 0);
491
+ atomic_store(&_waitingForMountingStageOnMainQueue, 0); // [macOS] C++23 compatibility
492
492
 
493
493
  if (!timeoutOccurred) {
494
494
  // Balancing the semaphore.
@@ -546,7 +546,7 @@
546
546
  {
547
547
  if (atomic_load(&_waitingForMountingStageOnMainQueue) && (self.stage & RCTSurfaceStageSurfaceDidInitialLayout)) {
548
548
  // Atomic equivalent of `_waitingForMountingStageOnMainQueue = NO;`.
549
- atomic_fetch_and(&_waitingForMountingStageOnMainQueue, 0);
549
+ atomic_store(&_waitingForMountingStageOnMainQueue, 0); // [macOS] C++23 compatibility
550
550
 
551
551
  {
552
552
  std::lock_guard<std::mutex> lock(_mutex);
@@ -9,6 +9,7 @@
9
9
 
10
10
  #import <objc/runtime.h>
11
11
  #import <algorithm>
12
+ #import <mutex> // [macOS]
12
13
  #import <vector>
13
14
 
14
15
  #import <React/RCTAssert.h>
@@ -8,6 +8,7 @@
8
8
  // [macOS]
9
9
 
10
10
  #import <Foundation/Foundation.h>
11
+ #import <React/RCTUIKit.h>
11
12
  #import "RCTCursor.h"
12
13
 
13
14
  #if defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 150000 /* __MAC_15_0 */
@@ -442,6 +442,7 @@ RCT_CUSTOM_VIEW_PROPERTY(pointerEvents, RCTPointerEvents, RCTView)
442
442
  // Unspecified values do not.
443
443
  // This wouldn't override a container view's `userInteractionEnabled = NO`
444
444
  view.userInteractionEnabled = YES;
445
+ break; // [macOS]
445
446
  case RCTPointerEventsNone:
446
447
  view.userInteractionEnabled = NO;
447
448
  break;
@@ -318,7 +318,7 @@
318
318
  @implementation RCTScrollView {
319
319
  id<RCTEventDispatcherProtocol> _eventDispatcher;
320
320
  CGRect _prevFirstVisibleFrame;
321
- __weak RCTUIView *_firstVisibleView; // [macOS]
321
+ __weak RCTPlatformView *_firstVisibleView; // [macOS]
322
322
  RCTCustomScrollView *_scrollView;
323
323
  #if !TARGET_OS_OSX // [macOS]
324
324
  UIView *_contentView;
@@ -940,17 +940,15 @@ RCT_SCROLL_EVENT_HANDLER(scrollViewDidScrollToTop, onScrollToTop)
940
940
  _scrollView.contentInset = UIEdgeInsetsMake(top, left, top, left);
941
941
  }
942
942
 
943
- #if !TARGET_OS_OSX // [macOS]
944
- - (void)addScrollListener:(NSObject<UIScrollViewDelegate> *)scrollListener
943
+ - (void)addScrollListener:(NSObject<RCTUIScrollViewDelegate> *)scrollListener // [macOS]
945
944
  {
946
945
  [_scrollListeners addObject:scrollListener];
947
946
  }
948
947
 
949
- - (void)removeScrollListener:(NSObject<UIScrollViewDelegate> *)scrollListener
948
+ - (void)removeScrollListener:(NSObject<RCTUIScrollViewDelegate> *)scrollListener // [macOS]
950
949
  {
951
950
  [_scrollListeners removeObject:scrollListener];
952
951
  }
953
- #endif // [macOS]
954
952
 
955
953
  - (void)scrollViewDidScroll:(RCTCustomScrollView *)scrollView // [macOS]
956
954
  {
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.81.1
1
+ VERSION_NAME=0.81.3
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
 
4
4
  android.useAndroidX=true
@@ -1404,14 +1404,14 @@ public class ReactInstanceManager {
1404
1404
  new RuntimeException(
1405
1405
  "detachRootViewFromInstance called with ReactRootView with invalid id"));
1406
1406
  }
1407
-
1408
- clearReactRoot(reactRoot);
1409
1407
  } else {
1410
1408
  reactContext
1411
1409
  .getCatalystInstance()
1412
1410
  .getJSModule(AppRegistry.class)
1413
1411
  .unmountApplicationComponentAtRootTag(reactRoot.getRootViewTag());
1414
1412
  }
1413
+
1414
+ clearReactRoot(reactRoot);
1415
1415
  }
1416
1416
 
1417
1417
  @ThreadConfined(UI)
@@ -14,7 +14,7 @@ public object ReactNativeVersion {
14
14
  public val VERSION: Map<String, Any?> = mapOf(
15
15
  "major" to 0,
16
16
  "minor" to 81,
17
- "patch" to 1,
17
+ "patch" to 3,
18
18
  "prerelease" to null
19
19
  )
20
20
  }
@@ -679,9 +679,6 @@ public class NativeViewHierarchyManager {
679
679
  View rootView = mTagsToViews.get(rootViewTag);
680
680
  dropView(rootView);
681
681
  mRootTags.delete(rootViewTag);
682
- if (rootView != null) {
683
- rootView.setId(View.NO_ID);
684
- }
685
682
  }
686
683
 
687
684
  /**
@@ -14,14 +14,14 @@
14
14
 
15
15
  #define REACT_NATIVE_VERSION_MAJOR 0
16
16
  #define REACT_NATIVE_VERSION_MINOR 81
17
- #define REACT_NATIVE_VERSION_PATCH 1
17
+ #define REACT_NATIVE_VERSION_PATCH 3
18
18
 
19
19
  namespace facebook::react {
20
20
 
21
21
  constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 81;
24
- int32_t Patch = 1;
24
+ int32_t Patch = 3;
25
25
  std::string_view Prerelease = "";
26
26
  } ReactNativeVersion;
27
27
 
@@ -7,7 +7,7 @@
7
7
 
8
8
  #pragma once
9
9
 
10
- #include <react/renderer/graphics/Geometry.h>
10
+ #include <react/renderer/graphics/Float.h> // [macOS]
11
11
 
12
12
  namespace facebook::react {
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.81.1",
3
+ "version": "0.81.3",
4
4
  "description": "React Native for macOS",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -157,7 +157,7 @@
157
157
  "peerDependencies": {
158
158
  "@types/react": "^19.1.4",
159
159
  "react": "^19.1.4",
160
- "react-native": "0.81.5"
160
+ "react-native": "0.81.6"
161
161
  },
162
162
  "peerDependenciesMeta": {
163
163
  "@types/react": {
@@ -166,13 +166,13 @@
166
166
  },
167
167
  "dependencies": {
168
168
  "@jest/create-cache-key-function": "^29.7.0",
169
- "@react-native-macos/virtualized-lists": "0.81.1",
170
- "@react-native/assets-registry": "0.81.5",
171
- "@react-native/codegen": "0.81.5",
172
- "@react-native/community-cli-plugin": "0.81.5",
173
- "@react-native/gradle-plugin": "0.81.5",
174
- "@react-native/js-polyfills": "0.81.5",
175
- "@react-native/normalize-colors": "0.81.5",
169
+ "@react-native-macos/virtualized-lists": "0.81.3",
170
+ "@react-native/assets-registry": "0.81.6",
171
+ "@react-native/codegen": "0.81.6",
172
+ "@react-native/community-cli-plugin": "0.81.6",
173
+ "@react-native/gradle-plugin": "0.81.6",
174
+ "@react-native/js-polyfills": "0.81.6",
175
+ "@react-native/normalize-colors": "0.81.6",
176
176
  "abort-controller": "^3.0.0",
177
177
  "anser": "^1.4.9",
178
178
  "ansi-regex": "^5.0.0",