pdfをGoogleからmozillaに移動
This commit is contained in:
parent
d5fab2f49b
commit
171df01a0d
@ -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)}`;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user