{"_id":"@bondparkerbond/lottie-react-native","_rev":"2-500c269a040f840b1aceafac665fd755","name":"@bondparkerbond/lottie-react-native","dist-tags":{"latest":"2.6.0"},"versions":{"2.5.11":{"name":"@bondparkerbond/lottie-react-native","version":"2.5.11","description":"React Native bindings for Lottie, copied to test quick fix","main":"lib/index.js","types":"src/js/index.d.ts","scripts":{"start":"node node_modules/react-native/local-cli/cli.js start","prepare":"npm run build","build":"babel src/js --out-dir lib","watch":"babel src/js --out-dir lib --watch","build:pods":"cd example/ios; bundle exec pod install; cd -","run:packager":"node node_modules/react-native/local-cli/cli.js start","run:ios":"react-native run-ios --project-path ./example/ios","start:android":"adb shell am start -n com.example/.MainActivity","run:android":"./gradlew installDebug && npm run start:android","lint":"eslint ./","ci":"npm run lint","publish:maven":"./gradlew clean check uploadArchives","docs:clean":"rimraf _book","docs:prepare":"gitbook install","docs:build":"npm run docs:prepare && gitbook build","docs:watch":"npm run docs:prepare && gitbook serve","docs:publish":"npm run docs:clean && npm run docs:build && cd _book && git init && git commit --allow-empty -m 'update book' && git fetch git@github.com:airbnb/lottie-react-native.git gh-pages && git checkout -b gh-pages && git add . && git commit -am 'update book' && git push git@github.com:airbnb/lottie-react-native.git gh-pages --force","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/airbnb/lottie-react-native.git"},"keywords":["lottie","animation","react","react-native","keyframe"],"author":{"name":"Leland Richardson","email":"leland.richardson@airbnb.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/airbnb/lottie-react-native/issues"},"homepage":"https://github.com/airbnb/lottie-react-native#readme","peerDependencies":{"react":"*","react-native":">=0.46"},"dependencies":{"invariant":"^2.2.2","lottie-ios":"^2.5.0","prop-types":"^15.5.10","react-native-safe-module":"^1.1.0"},"devDependencies":{"babel-cli":"^6.26.0","babel-eslint":"^6.1.2","babel-plugin-module-resolver":"^3.0.0","babel-preset-airbnb":"^1.1.1","babel-preset-react-native":"^4.0.0","eslint":"^3.3.1","eslint-config-airbnb":"^10.0.1","eslint-import-resolver-babel-module":"^2.2.1","eslint-plugin-import":"^1.14.0","eslint-plugin-jsx-a11y":"^2.1.0","eslint-plugin-prefer-object-spread":"^1.1.0","eslint-plugin-react":"^6.1.2","gitbook-cli":"^1.0.1","react":"16.0.0","react-native":"0.50.3","eslint-config-prettier":"^2.8.0","eslint-plugin-prettier":"^2.3.1","prettier":"^1.8.2","prettier-eslint":"^8.2.2"},"rnpm":{"android":{"sourceDir":"./src/android"}},"gitHead":"15d3c1bf8b45217d3f0fe1ba08bd3b9329e09dfa","_id":"@bondparkerbond/lottie-react-native@2.5.11","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"bondparkerbond","email":"parkerbond@gmail.com"},"dist":{"integrity":"sha512-X4YHCcyqQRbQxVpFLGMVwrrarE31xmHDr7RwUlKo9d1X9fAD+ojXCHUiXi6soP/BmDpXXuP71zXJFfme7uQKBQ==","shasum":"b3b949cc37c5ecce3c0f7293379f20b5eee87019","tarball":"https://registry.npmjs.org/@bondparkerbond/lottie-react-native/-/lottie-react-native-2.5.11.tgz","fileCount":62,"unpackedSize":8164379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJci/FtCRA9TVsSAnZWagAAcdwP/jNTGD2dZAWIGN3G0yow\nXqNPIthzbqTsyRPH/EZ1lX5oU71xpfTVgbnboUZ7ePKJhzqPkhJdsXT4uW3o\nUdwP4jYYzTuIdTPFmZIcWy/pKTxf0o10V24rKBuCJEMEYjQlNbY1etPDx/fP\n0scOJiDuSsVEh4yOkNIfYYUugR4Qxt2plxu7WUIB6aShyx4FcHq1lnYKRj/M\nTuK87mvqHGGgia6yHwYR8XZjSbujG2fn5rlc7EJr/eK3NCdnQ35vq0nkhwvX\nAcYlZPZZy8EcOWcXtF2TNtBGwQ8XcbQ4yWVu02aL6XaLPZK4NjUPbx/Esl+t\nKaGPdNjjugDYmhtlU9E4qCln6Z5JEy2AaDeiTd0qGPuaDxFI/jmrqzZmurbD\nTvMpUM9N5yI063I9cBahzdzfOIYAmvndglxZKRt6FrzegNDTUdcp0srdjQ87\nkM8SY1IgcXWiWhLsx/CbpuiozF6mQVbnsD+I4m/JPNOXmT2IUe00RJ0fn+P2\nZFnxs6fq1uuHP3UUd+wvZBNMK99Bg/4N7WCJHxGBkGn55GLrTfTYBiF/VwTL\nsIc7D89LYg3+955oz9zug+FTIM8QQo849Ip5sKGP8GxgAbr0bdZtEMbdjO0b\naoiX+a3kU2tBVXMhgbZ94MEzQreJn2nlnbGz/LfObMBZEe1KAUYoKQcl4lxr\nbGZV\r\n=RWG0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHvdMP4c5+bFqtVjUpN48o3l1ibkudQ97mSJ4Oft27OsAiBp/b3fv9L/3oDG6lTGXTF5Z01epDFzx5e2OMYskyiyRA=="}]},"maintainers":[{"name":"bondparkerbond","email":"parkerbond@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lottie-react-native_2.5.11_1552675180033_0.8488350901182569"},"_hasShrinkwrap":false},"2.6.0":{"name":"@bondparkerbond/lottie-react-native","version":"2.6.0","description":"React Native bindings for Lottie","main":"lib/index.js","types":"src/js/index.d.ts","scripts":{"start":"node node_modules/react-native/local-cli/cli.js start","prepare":"npm run build","build":"babel src/js --out-dir lib","watch":"babel src/js --out-dir lib --watch","build:pods":"cd example/ios; bundle exec pod install; cd -","run:packager":"node node_modules/react-native/local-cli/cli.js start","run:ios":"react-native run-ios --project-path ./example/ios","start:android":"adb shell am start -n com.example/.MainActivity","run:android":"./gradlew installDebug && npm run start:android","lint":"eslint ./","ci":"npm run lint","publish:maven":"./gradlew clean check uploadArchives","docs:clean":"rimraf _book","docs:prepare":"gitbook install","docs:build":"npm run docs:prepare && gitbook build","docs:watch":"npm run docs:prepare && gitbook serve","docs:publish":"npm run docs:clean && npm run docs:build && cd _book && git init && git commit --allow-empty -m 'update book' && git fetch git@github.com:airbnb/lottie-react-native.git gh-pages && git checkout -b gh-pages && git add . && git commit -am 'update book' && git push git@github.com:airbnb/lottie-react-native.git gh-pages --force","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/airbnb/lottie-react-native.git"},"keywords":["lottie","animation","react","react-native","keyframe"],"author":{"name":"Leland Richardson","email":"leland.richardson@airbnb.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/airbnb/lottie-react-native/issues"},"homepage":"https://github.com/airbnb/lottie-react-native#readme","peerDependencies":{"react":"*","react-native":">=0.46"},"dependencies":{"invariant":"^2.2.2","lottie-ios":"^2.5.0","prop-types":"^15.5.10","react-native-safe-module":"^1.1.0"},"devDependencies":{"babel-cli":"^6.26.0","babel-eslint":"^6.1.2","babel-plugin-module-resolver":"^3.0.0","babel-preset-airbnb":"^1.1.1","babel-preset-react-native":"^4.0.0","eslint":"^3.3.1","eslint-config-airbnb":"^10.0.1","eslint-import-resolver-babel-module":"^2.2.1","eslint-plugin-import":"^1.14.0","eslint-plugin-jsx-a11y":"^2.1.0","eslint-plugin-prefer-object-spread":"^1.1.0","eslint-plugin-react":"^6.1.2","gitbook-cli":"^1.0.1","react":"16.0.0","react-native":"0.50.3","eslint-config-prettier":"^2.8.0","eslint-plugin-prettier":"^2.3.1","prettier":"^1.8.2","prettier-eslint":"^8.2.2"},"rnpm":{"android":{"sourceDir":"./src/android"}},"gitHead":"53ebc84a737f44f5a18702213dc8bb6a41858d7c","_id":"@bondparkerbond/lottie-react-native@2.6.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"bondparkerbond","email":"parkerbond@gmail.com"},"dist":{"integrity":"sha512-o7nj+KAIXE1ouzJIrOJYzVFjxBdc/hDVXRabQS27R6HiWnkRd1AdwkNeSe182eWgyfkVZYoYyB6UdOhhxunPKw==","shasum":"44fa288398b3f70daabfcfc3b4088b568d6cb8f9","tarball":"https://registry.npmjs.org/@bondparkerbond/lottie-react-native/-/lottie-react-native-2.6.0.tgz","fileCount":62,"unpackedSize":8165005,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcj/EQCRA9TVsSAnZWagAAZngP/01yTyGPW2qrDccoSsXG\ngRLojjlOXGnuTdTfAwZa+VvRphm4q2Rk0pxk5VimVtuY3pKeSVXFaG+QE3hc\nr80ZNx8qZul6Qf9sgxzOLmtnpU1lolnjKruW3J9bRGJ+gouuLqB0a0IQHcf1\neEIUBWE+YcG9MLI7pt3BKFFhwwaYXIvQF0ALa8xWUeMrh0Q+diIQFmQShJze\n6BygeSHJZxT7zU2FjIOGLEHF1DqoU/KhI38PlDiCHDq7L9taVmzOCoYzxU2M\nZ7RDgtviqqrkcUt0khmZ7BmAPYVu4zguC+iDgkOIYi9+hNk4yJp88NmhF08h\nZ8Y7wjZXtAvM5q8O+R0IY4+PcTVEGGXOtPIW5UW/iUjHZK4XfOi1lXcVERT0\ns2xFpAqU8XzKBa3NXP0oDtHSVrK0YSAzgGXlyfIoKdxVKA6rb7x4CVvVWPbD\ngRJ4xr/hiMROFbvmOzb5wXt7TbAVT4z9QG4wyUHL9Sln1mQoMJhFB5E4NCbm\nv/dIjNIlrcGaxOndmIcEjDXC/7+TUU36St+KhoP4FAV3/rV7DhQHAChgM+xJ\nin/HT9mp6hogmPNAfk7crI+sG35lP79ZtEGhyTZQY160F1pzGTp5p/T3ICaE\nrjSbnWVN0Lr3PGSzr1djEqEMZoUh/Amyp9uNzq8wiPLizWyUn4cxIXbuMZ7Z\nd6Gm\r\n=IXSz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFqJOlPnx8tQUAK5J6mAR4AlUQIkAwPuF0Ldd/wupx8EAiB/19UiP5g8Cakbrqx3uVbmtpcYz84CYzMP2pjk1qBYJw=="}]},"maintainers":[{"name":"bondparkerbond","email":"parkerbond@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lottie-react-native_2.6.0_1552937231787_0.6523027534635919"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-15T18:39:39.838Z","2.5.11":"2019-03-15T18:39:40.478Z","modified":"2022-04-04T20:05:35.701Z","2.6.0":"2019-03-18T19:27:12.225Z"},"maintainers":[{"name":"bondparkerbond","email":"parkerbond@gmail.com"}],"description":"React Native bindings for Lottie","homepage":"https://github.com/airbnb/lottie-react-native#readme","keywords":["lottie","animation","react","react-native","keyframe"],"repository":{"type":"git","url":"git+https://github.com/airbnb/lottie-react-native.git"},"author":{"name":"Leland Richardson","email":"leland.richardson@airbnb.com"},"bugs":{"url":"https://github.com/airbnb/lottie-react-native/issues"},"license":"Apache-2.0","readme":"Lottie for React Native, [iOS](https://github.com/airbnb/lottie-ios), and [Android](https://github.com/airbnb/lottie-android)\n===\n\n[![npm Version](https://img.shields.io/npm/v/lottie-react-native.svg)](https://www.npmjs.com/package/lottie-react-native) [![License](https://img.shields.io/npm/l/lottie-react-native.svg)](https://www.npmjs.com/package/lottie-react-native) [![Build Status](https://travis-ci.org/airbnb/lottie-react-native.svg)](https://travis-ci.org/airbnb/lottie-react-native)\n\nLottie component for React Native (iOS and Android)\n\nLottie is a mobile library for Android and iOS that parses [Adobe After Effects](http://www.adobe.com/products/aftereffects.html) animations exported as JSON with [bodymovin](https://github.com/bodymovin/bodymovin) and renders them natively on mobile!\n\nFor the first time, designers can create **and ship** beautiful animations without an engineer painstakingly recreating it by hand.\n\n# Getting Started\n\nGet started with Lottie by installing the node module with yarn or npm:\n\n```\nyarn add lottie-react-native\n```\nor\n```\nnpm i --save lottie-react-native\n```\n\n## iOS\n\nUse `react-native link` to add the library to your project:\n\n```\nreact-native link lottie-ios\nreact-native link lottie-react-native\n```\n\nAfter this, open the Xcode project configuration and add the `Lottie.framework` as `Embedded Binaries`.\n\n## Android\n\nFor android, you can `react-native link` as well:\n\n```\nreact-native link lottie-react-native\n```\n\n## React Native Version Note:\n\nReact Native 0.59 included several significant changes to support 64-bit Android. Those who are on react-native versions BELOW 0.59.0 should continue using lottie-react-native 2.5.11.\n\nThose using react-native 0.59+ without AndroidX can use lottie-react-native 2.6.0, which includes backwards compatibility for older SDK versions that Lottie currently relies upon.\n\nThose on 0.59+ wanting out of the box AndroidX support should follow [this issue](https://github.com/react-native-community/lottie-react-native/issues/443).\n\n# Usage\n\n(If you are using TypeScript, please read [this first](/docs/typescript.md))\n\nLottieView can be used in a declarative way:\n\n```jsx\nimport React from 'react';\nimport LottieView from 'lottie-react-native';\n\nexport default class BasicExample extends React.Component {\n  render() {\n    return (\n      <LottieView\n        source={require('./animation.json')}\n        autoPlay\n        loop\n      />\n    );\n  }\n}\n```\n\nAdditionally, there is an imperative API which is sometimes simpler.\n\n```jsx\nimport React from 'react';\nimport LottieView from 'lottie-react-native';\n\nexport default class BasicExample extends React.Component {\n  componentDidMount() {\n    this.animation.play();\n    // Or set a specific startFrame and endFrame with:\n    this.animation.play(30, 120);\n  }\n\n  render() {\n    return (\n      <LottieView\n        ref={animation => {\n          this.animation = animation;\n        }}\n        source={require('../path/to/animation.json')}\n      />\n    );\n  }\n}\n```\n\nLottie's animation progress can be controlled with an `Animated` value:\n\n```jsx\nimport React from 'react';\nimport { Animated, Easing } from 'react-native';\nimport LottieView from 'lottie-react-native';\n\nexport default class BasicExample extends React.Component {\n  constructor(props) {\n    super(props);\n    this.state = {\n      progress: new Animated.Value(0),\n    };\n  }\n\n  componentDidMount() {\n    Animated.timing(this.state.progress, {\n      toValue: 1,\n      duration: 5000,\n      easing: Easing.linear,\n    }).start();\n  }\n\n  render() {\n    return (\n      <LottieView source={require('../path/to/animation.json')} progress={this.state.progress} />\n    );\n  }\n}\n```\n\n## API\n\nYou can find the full list of props and methods available in our [API document](https://github.com/airbnb/lottie-react-native/blob/master/docs/api.md). These are the most common ones:\n\n| Prop | Description | Default |\n|---|---|---|\n|**`source`**| **Mandatory** - The source of animation. Can be referenced as a local asset by a string, or remotely with an object with a `uri` property, or it can be an actual JS object of an animation, obtained (for example) with something like `require('../path/to/animation.json')`. | *None* |\n|**`style`**| Style attributes for the view, as expected in a standard [`View`](https://facebook.github.io/react-native/docs/layout-props.html). | The `aspectRatio` exported by Bodymovin will be set. Also the `width` if you haven't provided a `width` or `height` |\n|**`loop`**| A boolean flag indicating whether or not the animation should loop. | `true` |\n|**`autoPlay`**| A boolean flag indicating whether or not the animation should start automatically when mounted. This only affects the imperative API. | `false` |\n\n[More...](https://github.com/airbnb/lottie-react-native/blob/master/docs/api.md)\n\n# More\n\nView more documentation, FAQ, help, examples, and more at [airbnb.io/lottie](http://airbnb.io/lottie/react-native/react-native.html)\n\n![Example1](docs/gifs/Example1.gif)\n\n![Example2](docs/gifs/Example2.gif)\n\n![Example3](docs/gifs/Example3.gif)\n\n![Community](docs/gifs/Community%202_3.gif)\n\n![Example4](docs/gifs/Example4.gif)\n","readmeFilename":"README.md"}