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
This commit is contained in:
Valentin Shergin 2017-12-19 19:42:09 -08:00 committed by Facebook Github Bot
parent 6ad1f0957a
commit 5c8481e836
1 changed files with 9 additions and 0 deletions

View File

@ -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];