Skip to content

Commit

Permalink
fix: Allow viewRegistry to accept subclasses of NSView (#2196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saadnajmi committed Sep 20, 2024
1 parent b0111c0 commit a87ddb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-native/React/Views/RCTShadowView.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@class RCTRootShadowView;
@class RCTSparseArray;

typedef void (^RCTApplierBlock)(NSDictionary<NSNumber *, RCTPlatformView *> *viewRegistry); // [macOS]
typedef void (^RCTApplierBlock)(NSDictionary<NSNumber *, __kindof RCTPlatformView *> *viewRegistry); // [macOS]

/**
* ShadowView tree mirrors RCT view tree. Every node is highly stateful.
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/React/Views/RCTViewManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@class RCTSparseArray;
@class RCTUIManager;

typedef void (^RCTViewManagerUIBlock)(RCTUIManager *uiManager, NSDictionary<NSNumber *, RCTPlatformView *> *viewRegistry); // [macOS]
typedef void (^RCTViewManagerUIBlock)(RCTUIManager *uiManager, NSDictionary<NSNumber *, __kindof RCTPlatformView *> *viewRegistry); // [macOS]

@interface RCTViewManager : NSObject <RCTBridgeModule>

Expand Down

0 comments on commit a87ddb5

Please sign in to comment.