Prerequisites
Before starting, make sure you have:- Node.js 20.0.0 or higher
- React 19.1.0 or higher
- An API key from YouVersion Platform
Step 1: Install the SDK
Install the UI components package, which includes everything you need:Step 2: Configure the Provider
Wrap your application withYouVersionProvider and provide your API key:
App.tsx
Step 3: Display Your First Verse
Use theBibleTextView component to display a Bible verse:
The
versionId parameter specifies which Bible translation to use. 3034 is the Berean Standard Bible. See Bible Version IDs below for more options.Step 4: Show Verse of the Day
Add theVerseOfTheDay component to display today’s verse:
Step 5: Fetch Data with Hooks
For more control, use hooks to fetch and display Bible data:Step 6: Build a Bible Reader
Create a complete reading experience with theBibleReader component:
The
BibleReader component includes built-in navigation controls, version picker, and settings for font customization.Understanding USFM References
Bible references use the USFM (Unified Standard Format Markers) format:- Single verse:
JHN.3.16(John 3:16) - Verse range:
JHN.3.16-17(John 3:16-17) - Multiple verses:
JHN.3.16,18(John 3:16 and 18) - Entire chapter:
JHN.3(John chapter 3)
GEN- GenesisPSA- PsalmsMAT- MatthewJHN- JohnROM- RomansREV- Revelation
Bible Version IDs
Here are some commonly used Bible version IDs:| Version ID | Name | Language |
|---|---|---|
| 3034 | Berean Standard Bible | English |
| 1 | King James Version | English |
| 111 | New International Version | English |
| 59 | Reina-Valera 1960 | Spanish |
| 206 | La Bible du Semeur | French |
Use the
useVersions hook or BibleClient.getVersions() method to discover all available versions and their IDs.Using the Core API Directly
For non-React applications or advanced use cases, use the Core API:Next Steps
Now that you have a working application, explore these resources:Core Concepts
Learn about the three-layer architecture
Authentication
Add user authentication to your app
Styling Guide
Customize component appearance
API Reference
Explore the complete API reference
Troubleshooting
”Invalid API key” error
Make sure you’ve obtained a valid API key from YouVersion Platform and that you’re passing it correctly toYouVersionProvider.
Components not rendering
Ensure that:- You’ve wrapped your app with
YouVersionProvider - Your API key is valid
- You’re using React 19.1.0 or higher
- You’re using Node.js 20.0.0 or higher
TypeScript errors
If you’re using TypeScript, make sure you have the latest type definitions installed. The SDK includes full TypeScript support.Getting Help
- GitHub Issues - Report bugs or request features
- Examples - See more code examples
- API Reference - Complete API documentation
