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:
2025-09-01 13:11:31 +05:00
parent 6797ab6d9e
commit f519052b7b
12 changed files with 452 additions and 106 deletions

16
utils/pdf.ts Normal file
View 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);
};