Skip to content

Commit

Permalink
Merge pull request #443 from Bunk1/ios_bg_color
Browse files Browse the repository at this point in the history
Set the PDF View background color to be transparent so we see the style prop color
  • Loading branch information
wonday authored Mar 25, 2020
2 parents ec6bdd0 + 18f941c commit 13005ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/RCTPdf/RCTPdfView.m
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ - (instancetype)init
_pdfView.autoScales = YES;
_pdfView.displaysPageBreaks = YES;
_pdfView.displayBox = kPDFDisplayBoxCropBox;

_pdfView.backgroundColor = [UIColor clearColor];

_fixScaleFactor = -1.0f;
_initialed = NO;
_changedProps = NULL;
Expand Down

0 comments on commit 13005ad

Please sign in to comment.