UNPKG

836 Btext/x-cView Raw
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
8#import <React/UIView+React.h>
9
10/**
11 * ART nodes are implemented as empty UIViews but this is just an implementation detail to fit
12 * into the existing view management. They should also be shadow views and painted on a background
13 * thread.
14 */
15
16@interface ARTNode : UIView
17
18@property (nonatomic, assign) CGFloat opacity;
19
20- (void)invalidate;
21- (void)renderTo:(CGContextRef)context;
22
23/**
24 * renderTo will take opacity into account and draw renderLayerTo off-screen if there is opacity
25 * specified, then composite that onto the context. renderLayerTo always draws at opacity=1.
26 * @abstract
27 */
28- (void)renderLayerTo:(CGContextRef)context;
29
30@end