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.
This commit is contained in:
16
utils/pdf.ts
Normal file
16
utils/pdf.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
};
|
||||
Reference in New Issue
Block a user