diff --git a/README.md b/README.md index fd1fb9dc..8250b029 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# react-native-rive +# @rive-app/react-native Rive React Native 2.0 @@ -31,7 +31,7 @@ npm install rive-app/rive-nitro-react-native react-native-nitro-modules ## Usage ```js -import { Fit, RiveView, useRiveFile } from 'react-native-rive'; +import { Fit, RiveView, useRiveFile } from '@rive-app/react-native'; function App() { const { riveFile } = useRiveFile({ @@ -56,9 +56,9 @@ function App() { ## Native SDK Version Customization -> **⚠️ Advanced Usage:** Customizing native SDK versions is intended for advanced users only. Using non-default versions may cause build-time errors, or compatibility issues. Always review and update custom versions when upgrading react-native-rive. +> **⚠️ Advanced Usage:** Customizing native SDK versions is intended for advanced users only. Using non-default versions may cause build-time errors, or compatibility issues. Always review and update custom versions when upgrading @rive-app/react-native. -By default, react-native-rive uses specific versions of the Rive native SDKs defined in the library's `package.json` (`runtimeVersions.ios` and `runtimeVersions.android`). You can customize these versions if needed. +By default, @rive-app/react-native uses specific versions of the Rive native SDKs defined in the library's `package.json` (`runtimeVersions.ios` and `runtimeVersions.android`). You can customize these versions if needed. ### Vanilla React Native @@ -162,7 +162,7 @@ The following error types can occur during view operations: You can use these error types to provide specific error handling: ```js -import { RiveView, RiveErrorType } from 'react-native-rive'; +import { RiveView, RiveErrorType } from '@rive-app/react-native'; (null); diff --git a/tsconfig.json b/tsconfig.json index f25487a6..0f0b7001 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "rootDir": ".", "paths": { - "react-native-rive": ["./src/index"] + "@rive-app/react-native": ["./src/index"] }, "allowUnreachableCode": false, "allowUnusedLabels": false, diff --git a/yarn.lock b/yarn.lock index 290f78a7..58a88991 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4195,6 +4195,47 @@ __metadata: languageName: node linkType: hard +"@rive-app/react-native@workspace:.": + version: 0.0.0-use.local + resolution: "@rive-app/react-native@workspace:." + dependencies: + "@commitlint/config-conventional": ^19.6.0 + "@eslint/compat": ^1.2.7 + "@eslint/eslintrc": ^3.3.0 + "@eslint/js": ^9.22.0 + "@react-native/babel-preset": 0.79.2 + "@react-native/eslint-config": ^0.78.0 + "@release-it/conventional-changelog": ^9.0.2 + "@testing-library/react-hooks": ^8.0.1 + "@testing-library/react-native": ^13.3.3 + "@types/jest": ^29.5.5 + "@types/react": ^19.0.0 + "@typescript-eslint/eslint-plugin": ^8.46.4 + "@typescript-eslint/parser": ^8.46.4 + commitlint: ^19.6.1 + del-cli: ^5.1.0 + eslint: ^9.22.0 + eslint-config-prettier: ^10.1.1 + eslint-plugin-jest: ^29.1.0 + eslint-plugin-prettier: ^5.2.3 + jest: ^29.7.0 + nitrogen: ^0.31.6 + prettier: ^3.0.3 + react: 19.0.0 + react-native: 0.79.2 + react-native-builder-bob: ^0.40.10 + react-native-nitro-modules: ^0.31.8 + react-test-renderer: 19.0.0 + release-it: ^17.10.0 + turbo: ^1.10.7 + typescript: ^5.2.2 + peerDependencies: + react: "*" + react-native: "*" + react-native-nitro-modules: ">=0.31.8" + languageName: unknown + linkType: soft + "@rtsao/scc@npm:^1.1.0": version: 1.1.0 resolution: "@rtsao/scc@npm:1.1.0" @@ -13910,47 +13951,6 @@ __metadata: languageName: unknown linkType: soft -"react-native-rive@workspace:.": - version: 0.0.0-use.local - resolution: "react-native-rive@workspace:." - dependencies: - "@commitlint/config-conventional": ^19.6.0 - "@eslint/compat": ^1.2.7 - "@eslint/eslintrc": ^3.3.0 - "@eslint/js": ^9.22.0 - "@react-native/babel-preset": 0.79.2 - "@react-native/eslint-config": ^0.78.0 - "@release-it/conventional-changelog": ^9.0.2 - "@testing-library/react-hooks": ^8.0.1 - "@testing-library/react-native": ^13.3.3 - "@types/jest": ^29.5.5 - "@types/react": ^19.0.0 - "@typescript-eslint/eslint-plugin": ^8.46.4 - "@typescript-eslint/parser": ^8.46.4 - commitlint: ^19.6.1 - del-cli: ^5.1.0 - eslint: ^9.22.0 - eslint-config-prettier: ^10.1.1 - eslint-plugin-jest: ^29.1.0 - eslint-plugin-prettier: ^5.2.3 - jest: ^29.7.0 - nitrogen: ^0.31.6 - prettier: ^3.0.3 - react: 19.0.0 - react-native: 0.79.2 - react-native-builder-bob: ^0.40.10 - react-native-nitro-modules: ^0.31.8 - react-test-renderer: 19.0.0 - release-it: ^17.10.0 - turbo: ^1.10.7 - typescript: ^5.2.2 - peerDependencies: - react: "*" - react-native: "*" - react-native-nitro-modules: ">=0.31.8" - languageName: unknown - linkType: soft - "react-native-safe-area-context@npm:^5.4.0, react-native-safe-area-context@npm:~5.6.0": version: 5.6.2 resolution: "react-native-safe-area-context@npm:5.6.2"