Skip to content

[BUG] [Error: Cannot find native module 'RNYouVersionPlatform'] #30

@benaiahbarango

Description

@benaiahbarango

Context

Describe the bug
I get this error when attempting to use any of the components in an Expo managed project

[Error: Cannot find native module 'RNYouVersionPlatform']

Reproduction

To Reproduce
Steps to reproduce the behavior:

  1. Follow the Expo managed workflow installation
  2. Prebuild and run the app on iOS

Expected behavior
Renders the BibleReaderView component without errors

Code

// app/layout
import { YouVersionPlatform } from "@youversion/platform-sdk-reactnative";

useEffect(() => {
    YouVersionPlatform.configure("<app-key>");
  }, []);
// app/main/bible.tsx
import { BibleReaderView } from "@youversion/platform-sdk-reactnative";

const BibleTab = () => {
  return (
    <BibleReaderView
      appName="YouVersion RN SDK"
      signInMessage="Sign in to access your highlights"
    />
  );
};

export default BibleTab;

Supporting Material

Expo env info

expo-env-info 2.0.8 environment info:
    System:
      OS: macOS 26.2
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.11.0 - ~/.local/state/fnm_multishells/4209_1768493668310/bin/node
      Yarn: 1.22.22 - ~/.local/state/fnm_multishells/4209_1768493668310/bin/yarn
      npm: 10.2.4 - ~/.local/state/fnm_multishells/4209_1768493668310/bin/npm
      Watchman: 2024.10.28.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.16.2 - /Users/benaiahbarango/.rbenv/shims/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 24.5, iOS 18.5, macOS 15.5, tvOS 18.5, visionOS 2.5, watchOS 11.5
    IDEs:
      Android Studio: 2024.2 AI-242.23339.11.2421.12700392
      Xcode: 16.4/16F6 - /usr/bin/xcodebuild
    npmPackages:
      expo: ~54.0.29 => 54.0.29 
      expo-router: ~6.0.19 => 6.0.19 
      expo-updates: ~29.0.15 => 29.0.15 
      react: 19.1.0 => 19.1.0 
      react-dom: 19.1.0 => 19.1.0 
      react-native: 0.81.5 => 0.81.5 
      react-native-web: ^0.21.0 => 0.21.2 
    npmGlobalPackages:
      eas-cli: 16.28.0
    Expo Workflow: managed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions