mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
5b19464b81
Summary: This implement new <UnimplementedView> (only for iOS for now) that relies on the new "reactive component registration" functionality. The `UnimplementedView` component is the perfect example of that. It's simple and uniquely required some constraints that we want to implement: the same component class registered several times with different handles and names. This change serves two needs: 1. Providing an example of how that functionality can be used in more complex cases. 2. That will allow removing some `UnimplementedView`-specific code from the core (and very hot pathes of the system) and make them `noexcept`. That will eventually allow removing some public APIs from RawValue (constructing from folly::dynamic) that currently impose some implementation details and probably prevent us from making it slightly faster. There are only two consumers of this API, this is one of them. Changelog: [Internal] Reviewed By: fkgozali Differential Revision: D17211913 fbshipit-source-id: df1a1ac1a36289ef79904d509d38ee8b3f5588fb
22 lines
448 B
Objective-C
22 lines
448 B
Objective-C
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import <React/RCTViewComponentView.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/*
|
|
* UIView class for all kinds of <UnimplementedView> components.
|
|
*/
|
|
@interface RCTUnimplementedViewComponentView : RCTViewComponentView
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|