1.6.0 • Published 2 months ago

@lordicon/react v1.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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.6.0

2 months ago

1.5.1

2 months ago

1.5.0

2 months ago

1.4.1

6 months ago

1.4.0

6 months ago

1.3.0

6 months ago

1.2.3

6 months ago

1.2.2

6 months ago

1.2.1

6 months ago

1.2.0

6 months ago

1.1.0

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago