The React SDK provides hooks and UI components to integrate Bible content and YouVersion authentication into React applications with minimal setup.
See the source on GitHub.
Which package should I install?
@youversion/platform-react-ui — Start here. Includes styled components (BibleCard, BibleReader, VerseOfTheDay, auth button) plus all data hooks. Recommended for most developers.
@youversion/platform-react-hooks — Headless data hooks only. Use this if you want full control over UI and don't need any pre-built components. Automatically installed as a dependency of platform-react-ui.
Getting Started
Get a working Bible verse display with authentication in your app in under 5 minutes.
Please be mindful that global tag-based CSS will cause styling issues
in our YouVersion React SDK at this time.
You may find at this point that the global CSS classes in index.css
and imported into main.tsx is causing conflicts with the BibleCard component.
For now, remove the index.css import in the main.tsx file.
If you need more flexibility of layout and styles, you can use BibleTextView along with appropriate
custom components of your own to display the verse reference and necessary attribution.