Skip to content

Commit

Permalink
Fabric: Making UIView+ComponentViewProtocol to conform to the protocol
Browse files Browse the repository at this point in the history
Summary:
UIView+ComponentViewProtocol is useless without it. Conformance to the protocol is only purpose of this category.
We didn't run into this issue because we have never used that yet.

Reviewed By: mdvacca

Differential Revision: D15419953

fbshipit-source-id: 84a430397e886c941d35075d9754eae5748c3a3f
  • Loading branch information
shergin authored and facebook-github-bot committed May 22, 2019
1 parent b05761f commit 1c2c431
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion React/Fabric/Mounting/UIView+ComponentViewProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
/**
* Default implementation of RCTComponentViewProtocol.
*/
@interface UIView (ComponentViewProtocol)
@interface UIView (ComponentViewProtocol) <RCTComponentViewProtocol>

+ (std::vector<facebook::react::ComponentDescriptorProvider>)supplementalComponentDescriptorProviders;

Expand Down
6 changes: 6 additions & 0 deletions React/Fabric/Mounting/UIView+ComponentViewProtocol.mm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@

@implementation UIView (ComponentViewProtocol)

+ (ComponentDescriptorProvider)componentDescriptorProvider
{
RCTAssert(NO, @"`-[RCTComponentViewProtocol componentDescriptorProvider]` must be implemented in a concrete class.");
return {};
}

+ (std::vector<facebook::react::ComponentDescriptorProvider>)supplementalComponentDescriptorProviders
{
return {};
Expand Down

0 comments on commit 1c2c431

Please sign in to comment.