Skip to content

Commit 5c8481e

Browse files
sherginfacebook-github-bot
authored andcommitted
Fixed black ARTSurfaceView
Summary: If we draw using `drawRect:` with possible transparent pixels, we have to have `isOpaque = YES`. https://developer.apple.com/documentation/uikit/uiview/1622622-isopaque Differential Revision: D6609013 fbshipit-source-id: e483fd38b09c07e33b8b424d22c7a1adf81e6916
1 parent 6ad1f09 commit 5c8481e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Libraries/ART/ARTSurfaceView.m

+9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515

1616
@implementation ARTSurfaceView
1717

18+
- (instancetype)initWithFrame:(CGRect)frame
19+
{
20+
if (self = [super initWithFrame:frame]) {
21+
self.opaque = NO;
22+
}
23+
24+
return self;
25+
}
26+
1827
- (void)insertReactSubview:(UIView *)subview atIndex:(NSInteger)atIndex
1928
{
2029
[super insertReactSubview:subview atIndex:atIndex];

0 commit comments

Comments
 (0)