RCTSurfaceBackedComponent.h 827 B

1234567891011121314151617181920212223242526
  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 <ComponentKit/CKComponent.h>
  8. #import <ComponentKit/CKCompositeComponent.h>
  9. #import <RCTSurfaceHostingComponent/RCTSurfaceHostingComponentOptions.h>
  10. @class RCTBridge;
  11. /**
  12. * ComponentKit component represents a React Native Surface created
  13. * (and stored in the state) with given `bridge`, `moduleName`,
  14. * and `properties`.
  15. */
  16. @interface RCTSurfaceBackedComponent : CKCompositeComponent
  17. + (instancetype)newWithBridge:(RCTBridge *)bridge
  18. moduleName:(NSString *)moduleName
  19. properties:(NSDictionary *)properties
  20. options:(RCTSurfaceHostingComponentOptions)options;
  21. @end