RCTSurfaceView.h 531 B

12345678910111213141516171819202122232425
  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. NS_ASSUME_NONNULL_BEGIN
  9. @class RCTSurface;
  10. /**
  11. * UIView instance which represents the Surface
  12. */
  13. @interface RCTSurfaceView : UIView
  14. - (instancetype)initWithSurface:(RCTSurface *)surface NS_DESIGNATED_INITIALIZER;
  15. @property (nonatomic, weak, readonly, nullable) RCTSurface *surface;
  16. @end
  17. NS_ASSUME_NONNULL_END