New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rive-react-native

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rive-react-native

Rive React Native

  • 2.1.36
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13K
decreased by-23.37%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status Discord badge Twitter handle

rive-react-native

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.

Installation

  • install rive-react-native dependency using yarn or npm
npm install rive-react-native

or

yarn add rive-react-native
  • install pods for your ios project. Go to the project ios directory and run
pod 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 Android
  • Assets directory on iOS

Expo

Since 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.

Usage

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 component

Rive is a component that can render a native rive animation.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

Keywords

FAQs

Package last updated on 22 Feb 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc