All components are imported from @youversion/platform-react-native-expo-ui and must be rendered inside a YouVersionProvider. They read appKey from the provider, so you never pass it to a component directly.
theme ("light" | "dark" | "system") overrides the provider theme. BibleTextView, BibleCard, BibleReader, VerseOfTheDay, BibleChapterPickerSheet, and BibleVersionPickerSheet accept it. YouVersionAuthButton uses background instead. BibleChapterPicker does not accept theme. See Theming.
These components run on iOS and Android only. Expo web is not supported.
Text direction
BibleReader and BibleTextView follow the Bible version's text direction. Pass scriptureDirection on BibleTextView to set ltr or rtl yourself. Before that direction is known, and when the lookup fails, direction follows the strong letters in the passage. BibleCard follows those letters unless you pass scriptureDirection.
YouVersionProvider
Required provider that configures the SDK. Wrap your app root with it (inside GestureHandlerRootView). Authentication is optional — see Authentication.
Code
Props:
| Prop | Type | Default | Description |
|---|---|---|---|
appKey | string | required | Your YouVersion Platform App Key. |
apiHost | string | api.youversion.com | Platform API host for Bible content and auth. |
theme | "light" | "dark" | "system" | "system" | Default theme for all SDK components. "system" follows the OS. |
locale | string | device locale | Override the language of the SDK's built-in UI strings. Defaults to the device locale. |
permittedLanguageTags | string[] | — | BCP 47 language tags. Restrict versions by language. |
permittedVersionIds | number[] | — | Permit only these YouVersion Bible version IDs. |
excludedVersionIds | number[] | — | Refuse these YouVersion Bible version IDs. |
auth | { redirectUri: string; scopes?: AuthScope[]; permissions?: AuthPermission[] } | — | Enables authentication. Add permissions: ["highlights"] to save highlights. See Authentication. |
fallback | ReactNode | — | Kept for compatibility; the provider does not render it. |
children | ReactNode | required | Your app. |
Limit which Bible versions the SDK uses
By default, the SDK offers Bible versions in every available language. To limit that catalog, pass permittedLanguageTags, permittedVersionIds, or excludedVersionIds on YouVersionProvider. These lists are the version filter, and they exist only on the provider.
Code
Language tags follow BCP 47, such as "en" for English or "es" for Spanish.
You can also limit the catalog to specific Bible versions with permittedVersionIds:
Code
Version IDs are YouVersion Bible version IDs. Search for them in the Bibles directory. You can pass both permittedVersionIds and permittedLanguageTags. A version must match both lists to be used.
To exclude specific versions and leave every other available version usable, pass excludedVersionIds:
Code
If you omit a permit list, that list applies no restriction. An empty permit list ([]) permits nothing. If a version is both permitted and excluded, exclusion wins.
The version filter applies to the version picker, recents, the reader, cards, text, Verse of the Day, and any versionId you pass. The SDK does not substitute another version, including 3034. Recents that fail the filter stay hidden until you change the filter. The SDK does not delete them.
useYouVersion
Reads the provider's resolved configuration. It throws when used outside a YouVersionProvider. To load version copyright for custom layout, see Copyright & Attribution.
Code
Return value:
| Field | Type | Description |
|---|---|---|
appKey | string | The App Key passed to the provider. |
apiHost | string | Platform API host. Defaults to api.youversion.com. |
installationId | string | Anonymous per-install identifier generated by the SDK. |
authRedirectUrl | string | undefined | The auth.redirectUri passed to the provider, or undefined when auth is not configured. |
BibleTextView
Render a verse or passage with no surrounding card. You control the layout.
Code
Important: When you use BibleTextView, you are responsible for displaying the Bible version's copyright attribution, as required by its license. If you want attribution handled automatically, use BibleCard instead. See Copyright & Attribution.
Props:
| Prop | Type | Default | Description |
|---|---|---|---|
reference | string | required | USFM chapter (PSA.23), verse (JHN.3.16), or verse range within one chapter (PSA.23.1-6). |
versionId | number | required | Bible version ID. |
scriptureDirection | "ltr" | "rtl" | — | Set ltr or rtl. When omitted, the version's text direction is used. See Text direction. |
fontFamily | FontFamily | — | Installed font name or an SDK font. CSS stacks and keywords use an SDK face. |
fontSize | number | 16 | Font size. |
lineHeight | number | reader default | Multiple of fontSize. 2 draws twice the font size. |
showVerseNumbers | boolean | true | Show verse numbers. |
renderNotes | boolean | true | Render footnote markers (tapping opens a footnote sheet). |
selectedVerses | readonly number[] | — | Verse numbers to show as selected. |
onVerseSelect | (verses: number[]) => Promise<void> | — | Fires when the user changes verse selection. |
passageState | BibleTextViewPassageState | — | Supply passage HTML yourself and skip the fetch. |
onFootnotePress | (data: FootnoteData) => Promise<void> | — | Override the default footnote sheet. |
theme | "light" | "dark" | "system" | provider | Theme override. |
A range across chapters, or a comma-separated list, shows “This passage is unavailable in the selected Bible version.”
Pass a font name your app has installed. sans-serif, system-ui, and stacks that end in them draw Inter. Other CSS stacks, generic keywords, and var() draw the reader serif.
Saved highlights for that passage are drawn on the text. A failed load shows a message and Retry.
BibleCard
A pre-styled card displaying a passage with its reference, text, verse numbers, and automatic copyright attribution. maxWidth caps the card width. A version picker that opens in a bottom sheet is built in but hidden by default. Pass showVersionPicker to enable it. A range that starts at verse 1 keeps a Psalm title. A section heading stays when the next verse is in the range.
Code
Props:
| Prop | Type | Default | Description |
|---|---|---|---|
reference | string | required | Chapter, verse, or verse range within one chapter. Same shapes as BibleTextView. |
scriptureDirection | "ltr" | "rtl" | — | Text direction. When omitted, direction follows the strong letters in the passage. |
versionId | number | 3034 | Bible version ID. Seeds the version picker. |
defaultVersionId | number | 3034 | Initial version when used uncontrolled. |
showVersionPicker | boolean | false | Show the built-in version picker button. Hidden by default. |
onVersionChange | (versionId: number) => void | — | Called when the version changes. Provide with versionId for controlled use. |
onVersionPickerPress | (data: BibleVersionPickerPressData) => Promise<void> | — | Override — present your own version picker instead of the built-in sheet. Only fires when the picker is shown (showVersionPicker). |
onFootnotePress | (data: FootnoteData) => Promise<void> | — | Override the default footnote sheet. |
maxWidth | number | "100%" | 700 | Max width of the card. "100%" fills the parent and keeps the inner column at 600. |
background | "light" | "dark" | — | Color scheme for the card when theme is omitted. |
theme | "light" | "dark" | "system" | provider | Theme override. Wins over background. |
versionId follows the React controlled/uncontrolled pattern: pass versionId and onVersionChange together for a controlled card; pass versionId (or defaultVersionId) alone to seed an uncontrolled card whose version picker manages its own state.
BibleReader
A complete Bible reading experience. Passage text, plus built-in chapter, version, Search, and reader-settings sheets. Drop it into a tab or full screen.
Code
Pass a ref for refreshHighlights(), which reloads highlights for the chapter on screen.
onHighlightError reports highlight changes the SDK hasn't confirmed as saved. When status is queued, the change stays visible and the SDK retries later; delivery is not guaranteed. When status is error and reason is transient, the SDK can roll back the visible change. Don't count on a retry.
clearSelectionSignal dismisses the current verse selection when you increment it; the value at mount is the baseline.
BibleReader is stateful: it owns the current book, chapter, and version, persists the reading location across app launches, and coordinates its built-in sheets. Each of book / chapter / version can also be controlled.
Props:
| Prop | Type | Default | Description |
|---|---|---|---|
defaultBook | string | "JHN" | Initial book (3-letter USFM code) when uncontrolled. |
book / onBookChange | string / (book: string) => Promise<void> | — | Controlled book. |
defaultChapter | string | "1" | Initial chapter when uncontrolled. |
chapter / onChapterChange | string / (chapter: string) => Promise<void> | — | Controlled chapter. |
defaultVersionId | number | 3034 | Initial version when uncontrolled. |
versionId / onVersionChange | number / (versionId: number) => Promise<void> | — | Controlled version. |
showToolbar | boolean | true | Show the toolbar. false also hides the built-in chapter, version, Search, and settings sheets. |
onChapterPickerPress | (data: BibleChapterPickerPressData) => Promise<void> | — | Override — present your own chapter picker. |
onVersionPickerPress | (data: BibleVersionPickerPressData) => Promise<void> | — | Override — present your own version picker. |
onFootnotePress | (data: FootnoteData) => Promise<void> | — | Override the default footnote sheet. |
onVerseSelect | (selection: BibleReaderVerseSelection) => Promise<void> | — | Fires on every verse selection change. Fires with verses: [] when the selection clears. |
onHighlightError | (error: HighlightWriteError) => void | — | Reports queued or failed highlight changes. |
clearSelectionSignal | number | 0 | Increment to clear the current verse selection from native. |
ref | Ref<BibleReaderHandle> | — | Imperative handle with refreshHighlights(). |
onCopy | (data: BibleReaderShareData) => Promise<void> | — | Override — handle Copy yourself instead of the default. |
onShare | (data: BibleReaderShareData) => Promise<void> | — | Override — handle Share yourself instead of the default. |
backgroundColor | string | — | Override the reader background color. |
foregroundColor | string | — | Override the reader text color. |
navigation | BibleReaderNavigation | — | See createBibleReaderNavigation(). |
theme | "light" | "dark" | "system" | provider | Theme override. |
The toolbar includes chapter and version controls, Search, and settings. Sign out asks for confirmation. Search opens a sheet. A verse result loads that chapter and focuses the verse. showToolbar={false} hides the toolbar and the built-in sheets. See Search.
Use navigation to open a passage in the reader.
Create the object with createBibleReaderNavigation(), then pass it as navigation.
request opens the chapter and does not focus a verse.
focusReference opens the chapter and focuses a verse. On initial load, the other verses in the chapter are dimmed. Scrolling is the default. Pass false to focus without scrolling.
You can call either method before the reader mounts. A newer call replaces an older one. The reader applies each request once.
For a verse range, pass the original passage id as passageId so the reader keeps the full range.
Code
Custom picker flows
To present your own picker UI instead of the built-in sheets, implement onChapterPickerPress or onVersionPickerPress. The matching built-in sheet is suppressed and you receive the current selection:
Code
VerseOfTheDay
Display the YouVersion Verse of the Day. The card shows verse numbers and the Bible App wordmark. For the version copyright, see Copyright & Attribution.
Code
Props:
| Prop | Type | Default | Description |
|---|---|---|---|
background | "light" | "dark" | — | Color scheme when theme is omitted. |
onShare | (source: VerseOfTheDayShareData) => Promise<void> | — | Override the default share sheet on iOS and Android. |
versionId | number | 3034 | Bible version ID. |
dayOfYear | number | today | Day of the year (1–366). |
showSunIcon | boolean | true | Show the decorative sun icon. |
showBibleAppAttribution | boolean | true | Show the YouVersion Bible App attribution. |
showShareButton | boolean | true | Show the share button. |
size | "default" | "lg" | "default" | Card size. |
theme | "light" | "dark" | "system" | provider | Theme override. |
A footnote marker opens the footnote sheet.
YouVersionAuthButton
Pre-styled button for YouVersion authentication. Handles sign-in and sign-out via useYVAuth internally — you do not wire up signIn() yourself unless you need a fully custom UI (see Authentication).
Code
The button is an outlined pill with the Bible App logo beside the label. The label wraps to two lines.
Props:
| Prop | Type | Default | Description |
|---|---|---|---|
mode | "signIn" | "signOut" | "auto" | "auto" | "auto" shows sign-in when signed out and sign-out when signed in. |
background | "light" | "dark" | "light" | Forces the light or dark token scheme so the logo stays readable. |
text | string | — | Override the default localized button label. |
Examples:
Code
Theming
Set a default theme on the provider with the theme prop, and override it per component with each component's theme prop.
| Value | Behavior |
|---|---|
"light" | Light mode. |
"dark" | Dark mode. |
"system" | Follows the device's OS light/dark setting, live (default). |
Code
Advanced: standalone sheets
BibleReader already manages its own chapter, version, and settings sheets, so most apps never need these. For custom flows, the sheets are exported so you can present them yourself. Each is controlled via isOpen / onClose.
Code
BibleVersionPickerSheet
Code
| Prop | Type | Default | Description |
|---|---|---|---|
isOpen | boolean | required | Whether the sheet is open. |
onClose | () => void | required | Called when the sheet should close. |
versionId | number | 3034 | Currently selected version. |
onSelect | (versionId: number) => void | Promise<void> | — | Called when a version is selected. |
theme | "light" | "dark" | "system" | provider | Theme override. |
BibleChapterPickerSheet
Code
| Prop | Type | Default | Description |
|---|---|---|---|
isOpen | boolean | required | Whether the sheet is open. |
onClose | () => void | required | Called when the sheet should close. |
book | string | "JHN" | Currently selected book. |
chapter | string | "1" | Currently selected chapter. |
versionId | number | 3034 | Version whose books/chapters to show. |
onSelect | (data: BibleChapterPickerSelectData) => void | Promise<void> | — | Called with { book, chapter, versionId }. |
theme | "light" | "dark" | "system" | provider | Theme override. |
BibleChapterPicker
The book and chapter list without a sheet. Use it when your app owns presentation. It is the same picker the sheet hosts. The current book starts expanded. A search field filters book titles. An order control switches between the version's book order and alphabetical order.
Code
| Prop | Type | Default | Description |
|---|---|---|---|
book | string | "JHN" | Currently selected book. |
chapter | string | "1" | Currently selected chapter. |
versionId | number | 3034 | Version whose books and chapters to show. |
onSelect | (data: BibleChapterPickerSelectData) => void | Promise<void> | — | Called with { book, chapter, versionId }. |
style | StyleProp<ViewStyle> | — | Style for the picker root. |
BibleReaderSettingsSheet
Controls for reader font size, font family, and line spacing. The sheet reads and writes those values from the shared reader settings store.
| Prop | Type | Default | Description |
|---|---|---|---|
isSettingsSheetOpen | boolean | required | Whether the sheet is open. |
onClose | () => void | required | Called when the sheet should close. |
theme | "light" | "dark" | "system" | provider | Theme override. |