Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#import <React/UIView+React.h>
#import <react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.h>
#import <react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropViewProps.h>
#import <react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.h>
#import <react/utils/ManagedObjectWrapper.h>
#import "RCTLegacyViewManagerInteropCoordinatorAdapter.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@
#ifndef RCT_REMOVE_LEGACY_COMPONENT_INTEROP

#import <Foundation/Foundation.h>
#import <react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.h>
#import <UIKit/UIKit.h>
#include <folly/dynamic.h>
#include <string>

NS_ASSUME_NONNULL_BEGIN

@class RCTLegacyViewManagerInteropCoordinator;

@interface RCTLegacyViewManagerInteropCoordinatorAdapter : NSObject

- (instancetype)initWithCoordinator:(RCTLegacyViewManagerInteropCoordinator *)coordinator reactTag:(NSInteger)tag;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#ifndef RCT_REMOVE_LEGACY_COMPONENT_INTEROP

#import <React/UIView+React.h>
#import <react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.h>
#import <react/utils/FollyConvert.h>

@implementation RCTLegacyViewManagerInteropCoordinatorAdapter {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

#include <react/cxxstableapi/PrivateGuard.h>

#ifndef RCT_REMOVE_LEGACY_COMPONENT_INTEROP

#import <Foundation/Foundation.h>
Expand Down
10 changes: 0 additions & 10 deletions scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api
Original file line number Diff line number Diff line change
Expand Up @@ -1292,16 +1292,6 @@ interface RCTLegacyViewManagerInteropComponentView : public RCTViewComponentView
public virtual static void supportLegacyViewManagersWithPrefix:(NSString* prefix);
}

interface RCTLegacyViewManagerInteropCoordinator : public NSObject {
public virtual NSString* componentViewName();
public virtual UIView* createPaperViewWithTag:(NSInteger tag);
public virtual instancetype initWithComponentData:bridge:bridgeProxy:bridgelessInteropData:(RCTComponentData* componentData, _Nullable RCTBridge* bridge, _Nullable RCTBridgeProxy* bridgeProxy, RCTBridgeModuleDecorator* bridgelessInteropData);
public virtual void addObserveForTag:usingBlock:(NSInteger tag, InterceptorBlock block);
public virtual void handleCommand:args:reactTag:paperView:(NSString* commandName, NSArray* args, NSInteger tag, UIView* paperView);
public virtual void removeObserveForTag:(NSInteger tag);
public virtual void setProps:forView:(NSDictionary<NSString*, id>* props, UIView* view);
}

interface RCTLegacyViewManagerInteropCoordinatorAdapter : public NSObject {
public @property (copy) void(^eventInterceptor)(std::string eventName, folly::dynamic&& event);
public @property (strong) UIView* paperView;
Expand Down
10 changes: 0 additions & 10 deletions scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api
Original file line number Diff line number Diff line change
Expand Up @@ -1335,16 +1335,6 @@ interface RCTLegacyViewManagerInteropComponentView : public RCTViewComponentView
public virtual static void supportLegacyViewManagersWithPrefix:(NSString* prefix);
}

interface RCTLegacyViewManagerInteropCoordinator : public NSObject {
public virtual NSString* componentViewName();
public virtual UIView* createPaperViewWithTag:(NSInteger tag);
public virtual instancetype initWithComponentData:bridge:bridgeProxy:bridgelessInteropData:(RCTComponentData* componentData, _Nullable RCTBridge* bridge, _Nullable RCTBridgeProxy* bridgeProxy, RCTBridgeModuleDecorator* bridgelessInteropData);
public virtual void addObserveForTag:usingBlock:(NSInteger tag, InterceptorBlock block);
public virtual void handleCommand:args:reactTag:paperView:(NSString* commandName, NSArray* args, NSInteger tag, UIView* paperView);
public virtual void removeObserveForTag:(NSInteger tag);
public virtual void setProps:forView:(NSDictionary<NSString*, id>* props, UIView* view);
}

interface RCTLegacyViewManagerInteropCoordinatorAdapter : public NSObject {
public @property (copy) void(^eventInterceptor)(std::string eventName, folly::dynamic&& event);
public @property (strong) UIView* paperView;
Expand Down
10 changes: 0 additions & 10 deletions scripts/cxx-api/api-snapshots/ReactAppleNewarchCxx.api
Original file line number Diff line number Diff line change
Expand Up @@ -1292,16 +1292,6 @@ interface RCTLegacyViewManagerInteropComponentView : public RCTViewComponentView
public virtual static void supportLegacyViewManagersWithPrefix:(NSString* prefix);
}

interface RCTLegacyViewManagerInteropCoordinator : public NSObject {
public virtual NSString* componentViewName();
public virtual UIView* createPaperViewWithTag:(NSInteger tag);
public virtual instancetype initWithComponentData:bridge:bridgeProxy:bridgelessInteropData:(RCTComponentData* componentData, _Nullable RCTBridge* bridge, _Nullable RCTBridgeProxy* bridgeProxy, RCTBridgeModuleDecorator* bridgelessInteropData);
public virtual void addObserveForTag:usingBlock:(NSInteger tag, InterceptorBlock block);
public virtual void handleCommand:args:reactTag:paperView:(NSString* commandName, NSArray* args, NSInteger tag, UIView* paperView);
public virtual void removeObserveForTag:(NSInteger tag);
public virtual void setProps:forView:(NSDictionary<NSString*, id>* props, UIView* view);
}

interface RCTLegacyViewManagerInteropCoordinatorAdapter : public NSObject {
public @property (copy) void(^eventInterceptor)(std::string eventName, folly::dynamic&& event);
public @property (strong) UIView* paperView;
Expand Down
10 changes: 0 additions & 10 deletions scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api
Original file line number Diff line number Diff line change
Expand Up @@ -1292,16 +1292,6 @@ interface RCTLegacyViewManagerInteropComponentView : public RCTViewComponentView
public virtual static void supportLegacyViewManagersWithPrefix:(NSString* prefix);
}

interface RCTLegacyViewManagerInteropCoordinator : public NSObject {
public virtual NSString* componentViewName();
public virtual UIView* createPaperViewWithTag:(NSInteger tag);
public virtual instancetype initWithComponentData:bridge:bridgeProxy:bridgelessInteropData:(RCTComponentData* componentData, _Nullable RCTBridge* bridge, _Nullable RCTBridgeProxy* bridgeProxy, RCTBridgeModuleDecorator* bridgelessInteropData);
public virtual void addObserveForTag:usingBlock:(NSInteger tag, InterceptorBlock block);
public virtual void handleCommand:args:reactTag:paperView:(NSString* commandName, NSArray* args, NSInteger tag, UIView* paperView);
public virtual void removeObserveForTag:(NSInteger tag);
public virtual void setProps:forView:(NSDictionary<NSString*, id>* props, UIView* view);
}

interface RCTLegacyViewManagerInteropCoordinatorAdapter : public NSObject {
public @property (copy) void(^eventInterceptor)(std::string eventName, folly::dynamic&& event);
public @property (strong) UIView* paperView;
Expand Down
Loading