Files
umra-app/utils/pdf.ts
Nurmuhammet Allanov f519052b7b Enhance app functionality and localization
- Added new dependencies: expo-file-system and expo-sharing.
- Updated package versions for @babel/core and react-dom.
- Introduced a new index screen for displaying prayer times with city selection.
- Refactored ServicesGrid to accept a dynamic services array and improved layout.
- Updated localization for new phrases and service titles in Turkmen.
- Enhanced LostKeyModal with a close button and additional text.
- Improved PhrasebookModal to allow expandable phrases for better user interaction.
2025-09-01 13:11:31 +05:00

17 lines
520 B
TypeScript

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);
};