Socket
Book a DemoInstallSign in
Socket

bs-lottie-react-native

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-lottie-react-native

## [BuckleScript](https://github.com/bucklescript/bucklescript) bindings for [Lottie for React Native](https://github.com/airbnb/lottie-react-native)

Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

bs-lottie-react-native

BuckleScript bindings for Lottie for React Native

npm (scoped)

Example

See packages/ReasonableLottie. It's the original lottie-react-native example recreated in ReasonML.

TL;DR

open BsReactNative;

open BsLottieReactNative;

let component = ReasonReact.statelessComponent("Example");

let make = (children) => {
  ...component,
  render: (self) => <LottieView source=(Required(Packager.require("./animation.json"))) />
};

Installation

  • setup your React Native project according to http://airbnb.io/lottie/react-native/react-native.html

  • install this bindings

     $ yarn add bs-lottie-react-native bs-react-native reason-react
    
  • add bs-lottie-react-native (and "bs-react-native", "reason-react" if they arent't there yet) to bs-dependencies in your bsconfig.json

    {
    ...
    "bs-dependencies": ["bs-react-native", "reason-react", "bs-lottie-react-native"]
    }
    

Keywords

lottie

FAQs

Package last updated on 30 Mar 2018

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