From 668eff22e2e6c5464353a2842d06539a508ce729 Mon Sep 17 00:00:00 2001 From: Fillipe Diord Date: Tue, 6 Feb 2024 15:55:06 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20changing=20to=20an=20obje?= =?UTF-8?q?ct=20with=20the=20undefined=20property=20to=20avo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit changing to an object with the undefined property to avoid an error on the android platform --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index b88e66809..3378252b6 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -475,7 +475,7 @@ class PdfReader extends React.Component { onError, onHttpError: onError, style, - source: renderedOnce || !isAndroid ? source : undefined, + source: renderedOnce || !isAndroid ? source : {uri: undefined}, }} allowFileAccess={isAndroid} allowFileAccessFromFileURLs={isAndroid}