import * as FileSystem from 'expo-file-system'; import * as Linking from 'expo-linking'; import { Asset } from 'expo-asset'; export const openPdf = async () => { // const asset = Asset.fromModule(require('../assets/pdf/quran_in_turkmen.pdf')); // const localUri = `${FileSystem.documentDirectory}${asset.name}`; // const fileInfo = await FileSystem.getInfoAsync(localUri); // if (!fileInfo.exists) { // await FileSystem.downloadAsync(asset.uri, localUri); // } // await Linking.openURL(localUri); };