BibleTextView component renders Bible text with proper formatting, including verse numbers, footnotes, and support for verse selection and highlighting.
Basic Usage
Props
USFM reference (e.g., “JHN.3.16”, “JHN.3.16-17”, “JHN.3”)
Bible version ID (e.g., 111 for NIV)
Font family for the Bible text. Can be “Inter”, “Source Serif”, or a custom font family string.Default:
undefined (uses theme default)Font size in pixels.Default:
undefined (uses theme default)Line height as a multiplier (e.g., 1.6).Default:
undefined (uses theme default)Whether to display verse numbers.Default:
trueWhether to render footnote buttons.Default:
trueColor theme. Overrides the theme from
YouVersionProvider.Default: Inherits from providerArray of selected verse numbers for multi-verse selection.Default:
[]Callback when verses are selected/deselected. Enables verse selection mode.Default:
undefinedObject mapping verse numbers to highlight status.Default:
{}Optional pre-fetched passage data to avoid re-fetching. Useful for custom data loading.Default:
undefined (component fetches data)Examples
Single Verse
Verse Range
Full Chapter
Verse Selection and Highlighting
Custom Font and Styling
Dark Theme
Features
Interactive Footnotes
WhenrenderNotes={true}, footnote buttons appear inline with the text. Clicking a footnote opens a popover showing the note content and verse context.
Verse Selection
Enable verse selection by providingonVerseSelect callback. Users can click verses to select them, and selected verses receive visual highlighting.
Loading States
The component displays a loading spinner while fetching passage data and shows an error message if the passage is unavailable.Accessibility
- Loading state announced with
role="status" - Error state announced with
role="alert" - Footnote popovers properly labeled
- Keyboard navigation support
Related Components
- BibleReader - Full reading experience with navigation
- BibleCard - Embeddable passage card
- VerseOfTheDay - Daily verse display
