lottie-react
Advanced tools
Comparing version 2.2.1 to 2.3.0
@@ -296,2 +296,3 @@ import lottie from 'lottie-web'; | ||
(_a = animationInstanceRef.current) === null || _a === void 0 ? void 0 : _a.destroy(); | ||
return; | ||
}; | ||
@@ -298,0 +299,0 @@ /* |
@@ -304,2 +304,3 @@ 'use strict'; | ||
(_a = animationInstanceRef.current) === null || _a === void 0 ? void 0 : _a.destroy(); | ||
return; | ||
}; | ||
@@ -306,0 +307,0 @@ /* |
@@ -303,2 +303,3 @@ (function (global, factory) { | ||
(_a = animationInstanceRef.current) === null || _a === void 0 ? void 0 : _a.destroy(); | ||
return; | ||
}; | ||
@@ -305,0 +306,0 @@ /* |
{ | ||
"name": "lottie-react", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "Lottie for React", | ||
@@ -100,5 +100,5 @@ "keywords": [ | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0", | ||
"react-dom": "^16.8.0 || ^17.0.0" | ||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0", | ||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" | ||
} | ||
} |
@@ -7,2 +7,7 @@ # lottie-react | ||
> π©βπ» `v3` is under development and is planning to bring a lot of features and improvements. But unfortunately, at the moment all the maintainers are super busy with work related projects. You can check out the progress unde the `v3` branch. And of course, you are encouraged to contribute. :) | ||
> πββοΈ Are you using `lottie-react` in production? Please send us a message with your website, feature requests and recommendations at: [contact@gamote.ro](mailto:contact@gamote.ro). | ||
## Installation | ||
@@ -14,4 +19,4 @@ | ||
```text | ||
npm i react@^16.8.0 react-dom@^16.8.0 | ||
```shell | ||
yarn add react@^16.8.0 react-dom@^16.8.0 | ||
``` | ||
@@ -21,4 +26,4 @@ | ||
```text | ||
npm i lottie-react | ||
```shell | ||
yarn add lottie-react | ||
``` | ||
@@ -30,3 +35,3 @@ | ||
```js | ||
```tsx | ||
import Lottie from "lottie-react"; | ||
@@ -46,3 +51,3 @@ import groovyWalkAnimation from "./groovyWalk.json"; | ||
```js | ||
```ts | ||
import { useLottie } from "lottie-react"; | ||
@@ -70,7 +75,7 @@ import groovyWalkAnimation from "./groovyWalk.json"; | ||
Checkout the [Documentation](https://gamote.github.io/lottie-react) for more information and examples. | ||
Checkout the [Documentation](https://lottiereact.com) for more information and examples: [lottiereact.com](https://lottiereact.com) | ||
## Test | ||
```text | ||
npm test | ||
yarn test | ||
``` | ||
@@ -77,0 +82,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
223385
2068
108