From 18f941cd860eb0cf949607575501b7c1b11be855 Mon Sep 17 00:00:00 2001 From: Brian Cooley-Gilliom Date: Thu, 19 Mar 2020 11:03:20 -0400 Subject: [PATCH] Set the PDF View background color to be transparent so we see the style prop color --- ios/RCTPdf/RCTPdfView.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/RCTPdf/RCTPdfView.m b/ios/RCTPdf/RCTPdfView.m index 1cbf81c1..eec2ed88 100644 --- a/ios/RCTPdf/RCTPdfView.m +++ b/ios/RCTPdf/RCTPdfView.m @@ -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;