1.10.0 • Published 12 months ago
@lordicon/react v1.10.0
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
1.9.1
12 months ago
1.9.0
1 year ago
1.8.0
1 year ago
1.7.0
1 year ago
1.9.2
12 months ago
1.10.0
12 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