Skip to content

Commit fde1c81

Browse files
authored
chore: refactor rename react-native-rive to @rive-app/react-native (#37)
1 parent 866db00 commit fde1c81

16 files changed

Lines changed: 61 additions & 61 deletions

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# react-native-rive
1+
# @rive-app/react-native
22

33
Rive React Native 2.0
44

@@ -31,7 +31,7 @@ npm install rive-app/rive-nitro-react-native react-native-nitro-modules
3131
## Usage
3232

3333
```js
34-
import { Fit, RiveView, useRiveFile } from 'react-native-rive';
34+
import { Fit, RiveView, useRiveFile } from '@rive-app/react-native';
3535

3636
function App() {
3737
const { riveFile } = useRiveFile({
@@ -56,9 +56,9 @@ function App() {
5656

5757
## Native SDK Version Customization
5858

59-
> **⚠️ 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.
59+
> **⚠️ 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.
6060
61-
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.
61+
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.
6262

6363
### Vanilla React Native
6464

@@ -162,7 +162,7 @@ The following error types can occur during view operations:
162162
You can use these error types to provide specific error handling:
163163

164164
```js
165-
import { RiveView, RiveErrorType } from 'react-native-rive';
165+
import { RiveView, RiveErrorType } from '@rive-app/react-native';
166166

167167
<RiveView
168168
file={riveFile}
@@ -193,7 +193,7 @@ import { RiveView, RiveErrorType } from 'react-native-rive';
193193
194194
## Feature Support
195195

196-
This section provides a comprehensive overview of feature availability in `react-native-rive`, comparing it with the [previous Rive React Native runtime](https://github.com/rive-app/rive-react-native) and outlining the development roadmap.
196+
This section provides a comprehensive overview of feature availability in `@rive-app/react-native`, comparing it with the [previous Rive React Native runtime](https://github.com/rive-app/rive-react-native) and outlining the development roadmap.
197197

198198
### Runtime Feature Comparison
199199

RNRive.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if !rive_ios_version
2828
raise "Internal Error: Failed to determine Rive iOS SDK version. Please ensure package.json contains 'runtimeVersions.ios'"
2929
end
3030

31-
Pod::UI.puts "react-native-rive: Rive iOS SDK #{rive_ios_version}"
31+
Pod::UI.puts "@rive-app/react-native: Rive iOS SDK #{rive_ios_version}"
3232

3333
Pod::Spec.new do |s|
3434
s.name = "RNRive"

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def getRiveAndroidVersion() {
143143
}
144144

145145
def riveAndroidVersion = getRiveAndroidVersion()
146-
println "react-native-rive: Rive Android SDK ${riveAndroidVersion}"
146+
println "@rive-app/react-native: Rive Android SDK ${riveAndroidVersion}"
147147

148148
dependencies {
149149
implementation "com.facebook.react:react-android"

example/src/pages/ManyViewModels.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
RiveView,
77
useRiveFile,
88
type ViewModelInstance,
9-
} from 'react-native-rive';
9+
} from '@rive-app/react-native';
1010

1111
type BindModeOption =
1212
| 'none'

example/src/pages/OutOfBandAssets.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
/*Rive, */ Fit,
1111
/*RNRiveError,*/ useRiveFile,
1212
RiveView,
13-
} from 'react-native-rive';
13+
} from '@rive-app/react-native';
1414
import { Picker } from '@react-native-picker/picker';
1515
import { type Metadata } from '../helpers/metadata';
1616

example/src/pages/ResponsiveLayouts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { View, Text, StyleSheet, ActivityIndicator } from 'react-native';
2-
import { Fit, RiveView, useRiveFile } from 'react-native-rive';
2+
import { Fit, RiveView, useRiveFile } from '@rive-app/react-native';
33
import { type Metadata } from '../helpers/metadata';
44

55
/**

example/src/pages/RiveDataBindingExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
useRiveColor,
1111
useRiveTrigger,
1212
useRiveFile,
13-
} from 'react-native-rive';
13+
} from '@rive-app/react-native';
1414
import { type Metadata } from '../helpers/metadata';
1515

1616
export default function WithRiveFile() {

example/src/pages/RiveEventsExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
useRiveFile,
88
type RiveEvent,
99
RiveEventType,
10-
} from 'react-native-rive';
10+
} from '@rive-app/react-native';
1111
import { type Metadata } from '../helpers/metadata';
1212

1313
/**

example/src/pages/RiveFileLoadingExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
useRive,
1212
useRiveFile,
1313
type RiveFileInput,
14-
} from 'react-native-rive';
14+
} from '@rive-app/react-native';
1515
import { useState, useEffect } from 'react';
1616
import { downloadFileAsArrayBuffer } from '../helpers/fileHelpers';
1717
import { type Metadata } from '../helpers/metadata';

example/src/pages/RiveStateMachineInputsExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { View, Text, StyleSheet, ActivityIndicator } from 'react-native';
22
import { useEffect } from 'react';
3-
import { Fit, RiveView, useRive, useRiveFile } from 'react-native-rive';
3+
import { Fit, RiveView, useRive, useRiveFile } from '@rive-app/react-native';
44
import { type Metadata } from '../helpers/metadata';
55

66
/**

0 commit comments

Comments
 (0)