RCTSurfaceHostingComponentOptions.h 673 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <UIKit/UIKit.h>
  8. #import <ComponentKit/CKComponent.h>
  9. typedef CKComponent *(^RCTSurfaceHostingComponentOptionsActivityIndicatorComponentFactory)();
  10. struct RCTSurfaceHostingComponentOptions {
  11. NSTimeInterval synchronousLayoutingTimeout = 0.350;
  12. BOOL synchronousStateUpdates = YES;
  13. CGSize activityIndicatorSize = {44.0, 44.0};
  14. BOOL boundsAnimations = YES;
  15. RCTSurfaceHostingComponentOptionsActivityIndicatorComponentFactory activityIndicatorComponentFactory = nil;
  16. };