Permalink
Browse files

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
  • Loading branch information...
shergin authored and facebook-github-bot committed Dec 20, 2017
1 parent 6ad1f09 commit 5c8481e83646b9cae482a803c878fb007f370035
Showing with 9 additions and 0 deletions.
  1. +9 −0 Libraries/ART/ARTSurfaceView.m
@@ -15,6 +15,15 @@
@implementation ARTSurfaceView
- (instancetype)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
self.opaque = NO;
}
return self;
}
- (void)insertReactSubview:(UIView *)subview atIndex:(NSInteger)atIndex
{
[super insertReactSubview:subview atIndex:atIndex];

0 comments on commit 5c8481e

Please sign in to comment.