mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 12:45:37 +08:00
Introducing RCTSurfaceHostingComponent
Summary: RCTSurfaceHostingComponent is ComponentKit component represents given Surface instance. Differential Revision: D6217104 fbshipit-source-id: 50805d97e744de24a188bc97b33de4709e785aae
This commit is contained in:
committed by
Facebook Github Bot
parent
6d92046c56
commit
e75bd87a76
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import <ComponentKit/CKComponent.h>
|
||||
|
||||
typedef CKComponent *(^RCTSurfaceHostingComponentOptionsActivityIndicatorComponentFactory)();
|
||||
|
||||
struct RCTSurfaceHostingComponentOptions {
|
||||
NSTimeInterval synchronousLayoutingTimeout = 0.350;
|
||||
BOOL synchronousStateUpdates = YES;
|
||||
CGSize activityIndicatorSize = {44.0, 44.0};
|
||||
BOOL boundsAnimations = YES;
|
||||
RCTSurfaceHostingComponentOptionsActivityIndicatorComponentFactory activityIndicatorComponentFactory = nil;
|
||||
};
|
||||
Reference in New Issue
Block a user