pdfをGoogleからmozillaに移動
This commit is contained in:
@@ -3,5 +3,5 @@ import { Platform } from "react-native";
|
||||
export const getPDFViewURL = (url) => {
|
||||
if (Platform.OS == "ios") return url;
|
||||
else
|
||||
return `https://docs.google.com/viewer?url=${encodeURI(url)}&embedded=true`;
|
||||
return `https://mozilla.github.io/pdf.js/web/viewer.html?file=${encodeURI(url)}`;
|
||||
};
|
||||
|
Reference in New Issue
Block a user