Navigation Screen
Access the navigation screen by tapping the navigation icon in the top menu (navigate-circle-outline icon). The navigation screen is located at/navigation in the app.
Page Navigation
Navigate directly to any page number in the Mushaf.Select Page Number
In the “الانتقال إلى الصفحة” (Navigate to Page) section, you can:
- Tap any page number from the pagination list
- Click the edit icon to enter a specific page number
- Type the page number and press the check icon or submit
The page navigator shows the current page, first page, last page, and pages around your current position with ellipsis (…) for gaps.
Direct Page Input
For quick navigation:Enter Page Number
A text input will appear. Enter the desired page number (1-604 for Hafs, varies for other Riwayat).
On compact views (small screens), you’ll see a compact page indicator showing only the current page number. Tap it to open the input field.
Surah and Ayah Navigation
Navigate to a specific verse (Ayah) within a Surah.Select Surah
In the “الانتقال إلى الآية” (Navigate to Ayah) section, tap the Surah selector dropdown.
Choose from List
A modal will appear showing all 114 Surahs with:
- Surah number
- Surah name in Arabic
- Number of Ayahs
The Ayah modal uses a 5-column grid layout for easy selection. The list automatically scrolls to show the current Ayah when opened.
Top Menu Information
The top menu displays contextual navigation information:- Current Surah name (without tashkeel/diacritics)
- Juz number (الجزء)
- Position within Juz (shown as X/16, representing which of 16 portions you’re in)
Accessing the Top Menu
The top menu appears when you tap on the Mushaf page and automatically hides after 5 seconds (configurable viaEXPO_PUBLIC_TOP_MENU_HIDE_DURATION_MS environment variable).
Temporary vs. Saved Navigation
Open Mushaf Native distinguishes between two navigation modes:Temporary Navigation
When you navigate using the navigation screen, you enter temporary mode:- URL parameter:
temporary=true - A Reading Position Banner appears at the bottom
- Your saved reading position remains unchanged
- Allows browsing without losing your place
Saved Navigation
When you navigate without temporary mode:- The app updates your saved reading position (
currentSavedPageatom) - No Reading Position Banner appears
- Your progress is automatically saved
See the Bookmarks guide for more information about saving and managing your reading position.
Navigation Components
The navigation system uses these key components:PageNavigator Component
Location:components/PageNavigator.tsx
Features:
- Smart pagination showing current page ± range
- Direct page input with validation
- Compact mode for small screens
- Responsive design based on screen width
SurahAyaNavigator Component
Location:components/SurahAyaNavigator.tsx
Features:
- Surah dropdown with full list (114 Surahs)
- Ayah grid selector (5-column layout)
- Automatic scrolling to current selection
- Visual feedback for current selection
- Loading and error states
State Management
Navigation state is managed using Jotai atoms:jotai/atoms.ts and automatically persist using MMKV storage.