{"_id":"@alloc/react-native-art","_rev":"1-38fdc69b8e530d669ff846ea23baf196","name":"@alloc/react-native-art","dist-tags":{"latest":"1.0.0-alpha.40f6721"},"versions":{"1.0.0-alpha.40f6721":{"name":"@alloc/react-native-art","version":"1.0.0-alpha.40f6721","license":"MIT","author":{"name":"Alec Larson"},"description":"React Native module that allows you to draw vector graphics","main":"./lib/index.js","types":"./@types/index.d.ts","scripts":{"start":"node node_modules/react-native/local-cli/cli.js start","android":"react-native run-android --root example","ios":"react-native run-ios --project-path example/ios --scheme example","flow-check":"flow check","lint":"eslint . --cache","test":"jest"},"dependencies":{"art":"npm:@alloc/art@^0.11.0-alpha.99eb507","invariant":"^2.2.4","prop-types":"^15.7.2"},"peerDependencies":{"react":"^16.8.3"},"devDependencies":{"@babel/core":"^7.4.5","@babel/runtime":"^7.4.5","@react-native-community/eslint-config":"^0.0.5","@types/react":"^16.9.1","eslint":"^5.16.0","flow-bin":"^0.92.0","jest":"^24.8.0","prettier":"^1.18.2","react":"^16.8.3","react-native":"npm:@alloc/react-native-macos@^0.20.0"},"keywords":["react-native","react native","react-native-art","react-native-community","art"],"gitHead":"17b590f7e5a0e3e94c5bc7f81d32840083b56070","_id":"@alloc/react-native-art@1.0.0-alpha.40f6721","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-aoiqZXJI6SM0r7U0Wn7Tf4CTVXbngaQ0Hee7jH9/PCewGNivOn7haDPEHjFsplWFRCGD0G2WvCL/WSGDQR+YSg==","shasum":"f1012b53c36304d1ceda6e55a3cd67facfa281d3","tarball":"https://registry.npmjs.org/@alloc/react-native-art/-/react-native-art-1.0.0-alpha.40f6721.tgz","fileCount":60,"unpackedSize":103716,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwfB9CRA9TVsSAnZWagAA+woP+wRfK6DahkrVHvi3mCNw\nCAZpYOhdYgaU5dmsTn2zaygfQmvpU4JuyxpgiXfmp+ph/WG/hCAwYKtJs5r8\nBJpuSulHLS5kKYNtEAP/s+K+jkckI5Jv/PyigNRDQxFC2EWtZ14fPZnvmFuj\nxdC3khvlXLNVamSdKM+LSYYnb7nt8GUbLlQ8MLLvejiKADM7MdVCdXcD7dqk\nufxi2SR16vGOsh5d4821ROj73miunfZto7QTTjGctnYFUIcG8mpKmhpanHkr\nVQix+a5aeuyTv7rYfE9ob4gyNdbvOOAxirXwVj0Q5iPXROAwkRcpQI7KNn04\n6Ca7eb1/ziW9KVfGhOYVlp3/RaLHGcTqzRc3ERvHlEhx1oI9ZdP/R3XBPdi1\nrSuMZfZj3vGlHNeNApsUd9pFNGdVZ6D1481kbDvUjc1wEzAcJiEWPdYzVfkI\n+YEoQyQNTViVYq+tANkfiuG/sz6ApOH9pAWEUkArRiT+8HF68tT8rEpSsPSE\n3oOgwC1EEtsqCTBe/cDdVOEuNxpcL0Riqs5gz7e5c3urTMqKuprQTBDDgRJz\n0PQYY9bUQvs6iOFb70eDRmQwhf8Ugc1VtSpfBMZAPE7dxNbWG9mdMnJrLZpJ\n8NK6G70p5HhuZ3/1TgBMwUghMNFKpstehAZofAWxYRI7o0UjPrLVd0cJQp3m\nGESe\r\n=9rPx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAI5f1mDM7uNMWEMnqwG3lU3tzrnHn8KibvylljnqJY4AiEAuBJcSaj6GCKxUOhbFxCLJPmv5oD2Hn1US25HPU35JFQ="}]},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"_npmUser":{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-art_1.0.0-alpha.40f6721_1572991100904_0.9400655177196311"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-05T21:58:20.709Z","1.0.0-alpha.40f6721":"2019-11-05T21:58:21.005Z","modified":"2022-04-04T13:33:39.249Z"},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"description":"React Native module that allows you to draw vector graphics","keywords":["react-native","react native","react-native-art","react-native-community","art"],"author":{"name":"Alec Larson"},"license":"MIT","readme":"# `@react-native-community/art`\n\n[![CircleCI](https://img.shields.io/circleci/project/github/react-native-community/art/master.svg?style=flat-square)](https://circleci.com/gh/react-native-community/art) ![MIT License](https://img.shields.io/npm/l/@react-native-community/slider.svg) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) ![Supports Android and iOS](https://img.shields.io/badge/platforms-android%20|%20ios-lightgrey.svg)\n\n> _NOTE: ART was extracted from core `react-native` as a part of \"[Lean Core](https://github.com/facebook/react-native/issues/23313)\" effort._\n\nReact Native module that allows you to draw vector graphics\n\n# Getting started\n\n## Installing module\n\n```sh\nyarn add @react-native-community/art\n```\n\nor\n\n```sh\nnpm install @react-native-community/art --save\n```\n\n## Linking module\n\n### Mostly automatic linking\n\n```js\nreact-native link @react-native-community/art\n```\n\n### Manual linking\n\n<details>\n<summary>Manually linking the library for iOS</summary>\n\n#### `Open project.xcodeproj in Xcode`\n\nDrag `RNCSlider.xcodeproj` to your project on Xcode (usually under the Libraries group on Xcode):\n![xcode-add](https://facebook.github.io/react-native/docs/assets/AddToLibraries.png)\n\n#### Link `libART.a` binary with libraries\n\nClick on your main project file (the one that represents the `.xcodeproj`) select `Build Phases` and drag the static library from the `Products` folder inside the Library you are importing to `Link Binary With Libraries` (or use the `+` sign and choose library from the list):\n\n![xcode-link](https://facebook.github.io/react-native/docs/assets/AddToBuildPhases.png)\n\n</details>\n\n<details>\n<summary>Manually linking the library for Android</summary>\n\n#### `android/settings.gradle`\n\n```groovy\ninclude ':react-native-art'\nproject(':react-native-art').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/art/android')\n```\n\n#### `android/app/build.gradle`\n\n```groovy\ndependencies {\n   ...\n   implementation project(':react-native-art')\n}\n```\n\n#### `android/app/src/main/.../MainApplication.java`\n\nOn top, where imports are:\n\n```java\nimport com.reactnativecommunity.art.ARTPackage;\n```\n\nAdd the `ARTPackage` class to your list of exported packages.\n\n```java\n@Override\nprotected List<ReactPackage> getPackages() {\n    return Arrays.asList(\n            new MainReactPackage(),\n            new ARTPackage()\n    );\n}\n```\n\n</details>\n\n# Migrating from the core `react-native` module\n\nTo migrate to this module you need to follow all the installation instructions above and change your imports from:\n\n```js\nimport {ART} from 'react-native';\nconst {Surface, Shape} = ART;\n```\n\nto:\n\n```js\nimport {Surface, Shape} from '@react-native-community/art';\n```\n\n# Documentation\n\nYou can find API reference [here](https://github.com/react-native-community/art/tree/master/docs/api.md).\n\n## License\n\nThe library is released under the MIT licence. For more information see `LICENSE`.\n","readmeFilename":"README.md"}