1.10.0 • Published 11 months ago

@lordicon/react v1.10.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

React

This library allows you to easily integrate the playback of Lordicon icons into a React application. This library provides built-in support for both web and native environments.

Installation

$ npm install @lordicon/react

Usage

Sample usage:

import { Player } from '@lordicon/react';

const ICON = require('./assets/lock.json');

export default function Sample() {    
  const playerRef = useRef<Player>(null);
  
  const onPlayPress = () => {
    playerRef.current?.playFromBeginning();
  }

  return (
    <Player 
      ref={playerRef} 
      icon={ ICON }
    />
  );
}

More examples

For more code samples demonstrating various possibilities, please refer to the 'demo' folder.

Useful links

  • Lordicon - Lordicon is a powerful library of thousands of carefully crafted animated icons. element.
  • Lottie - Render After Effects animations natively on Web, Android and iOS, and React Native.
1.9.1

11 months ago

1.9.0

11 months ago

1.8.0

11 months ago

1.7.0

11 months ago

1.9.2

11 months ago

1.10.0

11 months ago

1.6.0

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago