Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including react-native-web-lottie with all npm packages installed. Try it out:

require("react-native-web/package.json"); // react-native-web is a peer dependency. var reactNativeWebLottie = require("react-native-web-lottie")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

react-native-web-lottie v1.4.4

React Native for Web implementation of Lottie

react-native-web-lottie

React Native for Web implementation of Lottie

Getting started

$ npm install react-native-web-lottie --save

Alias the package in your webpack config:

resolve: {
    alias: {
        'react-native': 'react-native-web',
        ...
        'lottie-react-native': 'react-native-web-lottie',
    }
}

Usage

See Lottie's docs.

Examples

See the storybook.

Contributing

PRs are welcome!

The following important features are not implemented:

  • progress prop (partially implemented using Animated.Value)
  • imperative API
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free