Invariant Violation: View config not found for component `RiveReactNativeView`

On my react native app, I got an error.



import React from "react";
import { StyleSheet } from "react-native";
import Rive, { Alignment, Fit } from "rive-react-native";

function LogoAnimtation() {
  return (
    <Rive
      fit={Fit.Contain}
      alignment={Alignment.Center}
      style={styles.animation}
      artboardName={"COU"}
      autoplay={true}
      resourceName="COU_HOME.riv"
    />
  );
}

The Error code is here.

I want to use the RIVE file from my local asset but it doesn’t work.

So, I tried to update the RIVE version & Expo version & RN version and also it doesn’t work.

{
  "name": "test",
  "main": "index.ts",
  "version": "0.1.0",
  "scripts": {
    "start": "expo start",
    "reset-project": "node ./scripts/reset-project.js",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "web": "expo start --web",
    "test": "jest --watchAll",
    "lint": "expo lint"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@babel/runtime": "^7.26.9",
    "@expo/vector-icons": "^14.1.0",
    "@react-navigation/bottom-tabs": "^7.2.0",
    "@react-navigation/native": "^7.0.14",
    "axios": "^1.8.1",
    "expo": "~53.0.7",
    "expo-asset": "~11.1.5",
    "expo-auth-session": "~6.1.5",
    "expo-blur": "~14.1.4",
    "expo-constants": "~17.1.5",
    "expo-crypto": "~14.1.4",
    "expo-font": "~13.3.1",
    "expo-haptics": "~14.1.4",
    "expo-image": "~2.1.6",
    "expo-image-picker": "~16.1.4",
    "expo-linking": "~7.1.4",
    "expo-router": "~5.0.5",
    "expo-splash-screen": "~0.30.8",
    "expo-status-bar": "~2.2.3",
    "expo-symbols": "~0.4.4",
    "expo-system-ui": "~5.0.7",
    "expo-web-browser": "~14.1.6",
    "react": "19.0.0",
    "react-dom": "19.0.0",
    "react-native": "0.79.2",
    "react-native-gesture-handler": "~2.24.0",
    "react-native-reanimated": "~3.17.5",
    "react-native-safe-area-context": "5.4.0",
    "react-native-screens": "~4.10.0",
    "react-native-svg": "15.11.2",
    "react-native-ui-datepicker": "^3.0.5",
    "react-native-web": "~0.20.0",
    "react-native-webview": "13.13.5",
    "rive-react-native": "^9.2.1"
  },
  "devDependencies": {
    "@babel/core": "^7.25.2",
    "@eslint/js": "^9.21.0",
    "@types/jest": "^29.5.12",
    "@types/react": "~19.0.14",
    "@types/react-test-renderer": "^18.3.0",
    "eslint": "^9.21.0",
    "eslint-plugin-react": "^7.37.4",
    "globals": "^16.0.0",
    "jest": "^29.2.1",
    "jest-expo": "~53.0.4",
    "prettier": "^3.5.3",
    "react-test-renderer": "18.3.1",
    "typescript": "^5.8.3",
    "typescript-eslint": "^8.25.0"
  },
  "private": true
}

My package.json is here and my RIVE file path is “@/assets/rive”.

What should I do?

I did “pod install” and updated the Cocoapod.