Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
rive-react-native
Advanced tools
This package implements native binding for Rive Runtime for iOS and Android.
Expo CLI
is not supported by this lib.
Further runtime documentation can be found in Rive's help center.
rive-react-native
dependency using yarn or npmnpm install rive-react-native
or
yarn add rive-react-native
ios
directory and runpod install
Add empty swift file in order to create Bridging-Header
file if it doesn't exist. (optional)
add this dependency to your project inside android/app/build.gradle
dependencies {
implementation "androidx.startup:startup-runtime:1.0.0"
}
More info here.
Put .riv
files inside your project:
raw
directory on AndroidAssets
directory on iOSSince rive-react-native has native bindings to iOS and Android, you need to generate a native project in order to run you app. This can be done with expo run:android
or expo run:ios
. See https://docs.expo.dev/workflow/customizing/ for more information.
import Rive from 'rive-react-native';
const resourceName = 'truck_v7'; // file truck_v7.riv
function App() {
return <Rive resourceName={resourceName} />;
}
You can download the truck_v7.riv file from the example/ios/Assets folder. A more detailed guide about usage can be found here
Rive
is a component that can render a native rive animation.
See the contributing guide to learn how to contribute to the repository and the development workflow.
FAQs
Rive React Native
We found that rive-react-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.