{"_id":"@captain-omega/react-native-tree-view","_rev":"5-94df89f6f2bd08d62a513794e43081a4","time":{"1.0.0":"2019-05-18T12:49:10.157Z","created":"2019-05-18T12:55:48.568Z","1.0.1":"2019-05-18T12:55:50.418Z","modified":"2022-04-04T21:46:54.339Z","1.0.2":"2019-05-30T13:05:30.812Z"},"name":"@captain-omega/react-native-tree-view","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@captain-omega/react-native-tree-view","version":"1.0.1","description":"React Native component for hierarchical data representation.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["react-native","tree","expand","android","ios"],"author":{"name":"Denis Evdokimov"},"license":"MIT","homepage":"https://github.com/CaptainOmega/react-native-tree-view","peerDependencies":{"react":"16.8.3","react-native":"0.59.5","react-native-vector-icons":"^6.4.2"},"dependencies":{"prop-types":"^15.7.2"},"gitHead":"df2b21a469355de43dfe38a0af7208bdaeb67c45","_id":"@captain-omega/react-native-tree-view@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"captain-omega","email":"googlamen007@gmail.com"},"dist":{"integrity":"sha512-Ix60p24jSxNCQvfnyN8odbyChRlCzVe7R8h/gspb0I2KZjraiCnlc6cu22sVt4qOrEjtMGFwMEN4H2RZGF0ZFQ==","shasum":"0ef39d23892d9f817269b5443b35086b39ab129d","tarball":"https://registry.npmjs.org/@captain-omega/react-native-tree-view/-/react-native-tree-view-1.0.1.tgz","fileCount":1545,"unpackedSize":152054306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc4ADWCRA9TVsSAnZWagAAb0gP+gOvL60iqLCIu02c+xz+\nyCBHhhpz1uBKw42OtylZue/GyeF4KFtr3GY7v6P4MUBfekj8b3tEoIoH6xBN\nXtidKGMUZo5jRyyCSQqeo8PeNkI1EzO6Oo4xoMTPMis+LLdaDlHeBKdQ6UKU\ngutudqBUdq6eVopeUE6jbt2KOCHODLEFFzXtDUR9KQmi3rGefe8Aai6UMVz3\n3VMv9cM66HCCVd8PQxhwHgNLv/Q1kMXoPSwwi4ogrI3RE45HMjuczDGlKEzC\nz6GiOdgrs9cqQ/Hkt+JI9bD0UFSrxJ88q9h6ZIhFxFAOOMKnfN+BO4MjEGJN\nNURSRH2Oogi0mm66wesepWfpXwxr6bYyENHqOf2eTyzKCoy8KeLxTD2yczeQ\nhj3coc4zjujI62crEMEnIx1srFtEntwyjSZ2+DtYMQDux5UqaNG7aVJJq8s+\ne3E3O3pWCEK0UEt39y4BD1wx3xPH2Xvkhjx9Es+z9lpCCP8n6qajnn53KfSU\narPm0a0XzlV6k+FtIGxBSbyXhRVqrjDAWXzXHdXXq6IW99zNF3ALSzCdexVL\nQMZyZ4G1BwAeAkTSpmkU3V4Z0851r431GxjI/iTyXD9AzH7OkoJKMu6B9vcX\n0xY6Xv3W7GHUqw/HcgeS5YxJY5P0oDVnEc1Uuy5AFBYpoROjQRxOAYNWye71\ndDk/\r\n=3gLO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHLVWAV8zklAF7rM2YpxGgX//q5lreP7U1NACRrB7rJmAiEA4Eftq/4dKYu4CiwTJ1Ht0ZfS7rlFaIBuAi3cwSAISH8="}]},"maintainers":[{"name":"captain-omega","email":"googlamen007@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-tree-view_1.0.1_1558184148597_0.8215399392982425"},"_hasShrinkwrap":false},"1.0.2":{"name":"@captain-omega/react-native-tree-view","version":"1.0.2","description":"React Native component for hierarchical data representation.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["react-native","tree","expand","android","ios"],"author":{"name":"Denis Evdokimov"},"license":"MIT","homepage":"https://github.com/CaptainOmega/react-native-tree-view","peerDependencies":{"react":"16.8.3","react-native":"0.59.5","react-native-vector-icons":"^6.4.2"},"dependencies":{"prop-types":"^15.7.2"},"gitHead":"96b354bc48541f840b1829eb936a6880f584cedc","_id":"@captain-omega/react-native-tree-view@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"captain-omega","email":"googlamen007@gmail.com"},"dist":{"integrity":"sha512-o6V3vrrWJEZ7JK3PRO/wWsxW+0xFQmoV2vr9ZG2maIH6o47tTyzCyUbm73Ukzbr27pvzXnaeBZuD8XfQhYJB9A==","shasum":"75bf793d64dc5055c4d2c0889be1acb4f0892889","tarball":"https://registry.npmjs.org/@captain-omega/react-native-tree-view/-/react-native-tree-view-1.0.2.tgz","fileCount":1588,"unpackedSize":154155698,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc79UbCRA9TVsSAnZWagAAR10P/0GZUiOdgNbhC1oy+xC+\n9CaRQifzmde5ESrrlXnTY0cIuVOQZyAH89+QWpMcEha1Kh0lGmFPecnKdUS7\nf45khVdoTNQk8wLLvBrQpYUhMfHI4zFmee3153Gu309LvadYEYantFvGtKWf\nElkXUXM4FAyanJcgD+A9FvqMNuwKd/OAQmBxoYANosp/C2oaA+saee/pa7e3\nXZ22DCuN4PWTuCHqEKKJFjLcIsvokQyO8uAH5IthraIpd8CbBaXtT2ZjvR32\nYLZeOY6zR43a2EnVPQaMapNZSyYgZZ3efyJeDK764734tbVCBuHH2oK3IuLG\nGRo9XTzrqS7jBXVj0vsi+efkVdbLIG4znWirD9gLag1h21TAsEwwIGN1DVri\nPpunzU609zb5ovhMHlPpRHqj/hwc+M8vGfzrZz7J/vgB9/97AFDnTEa1cLcK\n/opagvbhqV7qijEDdtbAZeD41D1ar/rhqrTGAa+T9Jk/NTwTPhqTtJw95Pxq\nWJy/kPlDGZtOxtShIE/9dmgCENBe1oxYEB/v9bSt0F7m/DyhVcTdiQHLvs5b\nsVRZHhuep41gD7fkDuPuYupJoyKe/KjQ/mqTBjmVbO9kF+doIfCdsaeJFk4R\nUyvNZ98/PYqhQW/ooMgOiJ1znOZDpYjheW4fXxoupui3OPiuH+f6CpBy/85Z\ndrlE\r\n=kkDZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBZ020DmUCQRMu09hU5IXHriTZXQTS2piIaSfysGRfZ0AiAvjdEGq/KovbsYwJJlekbZatmLc+TkPgcLdRyS+1Azsw=="}]},"maintainers":[{"name":"captain-omega","email":"googlamen007@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-tree-view_1.0.2_1559221528986_0.7984104501300548"},"_hasShrinkwrap":false}},"maintainers":[{"name":"captain-omega","email":"googlamen007@gmail.com"}],"description":"React Native component for hierarchical data representation.","homepage":"https://github.com/CaptainOmega/react-native-tree-view","keywords":["react-native","tree","expand","android","ios"],"author":{"name":"Denis Evdokimov"},"license":"MIT","readme":"# react-native-tree-view\n\nReact Native component for hierarchical data representation.\nHas expandable row, which useful for displaying large amounts of information in vertical space. \n\n## Show Cases\n\n![demo.gif](demo.gif)\n\n## Getting Started\n\n- [Installation](#installation)\n- [Basic Usage](#basic-usage)\n- [Properties](#properties)\n  + [Basic props of `TreeView`](#basic-props-of-treeview)\n  + [Cells definition](#cells-definition)\n- [Run example](#run-example)\n\n### Installation\n\nInstall main package:\n\n```bash\n$ npm i --save @captain-omega/react-native-tree-view\n```\n\nInstall related icons package [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons):\n\n```bash\n$ npm i --save react-native-vector-icons\n```\n\nAdd settings for your platform, see more [here](https://github.com/oblador/react-native-vector-icons#installation)\n\n#### IOS\n```bash\nreact-native link react-native-vector-icons\n```\n\n#### Android\n\nEdit `android/app/build.gradle` ( NOT `android/build.gradle` ) and add the following:\n```\napply from: \"../../node_modules/react-native-vector-icons/fonts.gradle\"\n```\n\n### Basic Usage\n\n- Install `@captain-omega/react-native-tree-view` package to project \n\n- Import module to file\n\n```jsx\nimport TreeView from '@captain-omega/react-native-tree-view';\n```\n\n- Then, use component like this:\n\n```jsx\n<TreeView  \n  cells={level1}\n  data={data}  \n  renderExpand={(item) => (\n    <TreeView\n      hideHeaders\n      cells={level2}\n      data={item.children}\n      hideArrow\n    />\n  )}\n/>\n```\n\nYou can watch more examples in `example` directory\n\n### Properties\n\n#### Basic props of `TreeView`\n\n| Prop  | Default  | Type | Description |\n| :------------ |:---------------:| :---------------:| :-----|\n| cells | - | `array` | An array of objects that each describe a cell. See the `cells` property definition [here](#cells-definition). |\n| contentStyle | {} | `style` | See default style in source. |\n| data | - | `array` | The array of table rows. |\n| headerStyle | {} | `style` | See default style in source. |\n| hideArrow | false | `bool` | Hide column with arrows if this parameter is `true`. |\n| hideHeaders | false | `bool` | Hide component headers. |\n| isExpandable | null | `function` | Function that return `true` if row is expandable and `false` if it doesn't. |\n| open | false | `bool` | Open all expandable rows by default. |\n| onPress | null | `function` | Handle row press event. |\n| renderExpand | null | `function` | Render function for expandable content. If this parameter is `null`, then row not expandable. |\n\n#### Cells definition\n\n| Prop  | Default  | Type | Description |\n| :------------ |:---------------:| :---------------:| :-----|\n| cellStyle | {} | `style` | Set row cell style. |\n| headerCellStyle | {} | `style` | Set header cell style. |\n| renderHeaderCell | - | `function` | Render header cell content. |\n| renderRowCell | - | `function` | Render row cell content. |\n| width | 30 | `number` | Width of column. |\n\n### Run example\n\nTo run example call this commands in terminal:\n\n```bash\n$ cd example\n$ npm i\n$ react-native run-android\n$ react-native run-ios\n```\n\n#### Notice!\n\nIf your `npm` not support symlinks, then call this code from repository root directory:\n\n```bash\n$ mkdir example/node_modules/@captain-omega\n$ cp -alf $PWD example/node_modules/@captain-omega\n$ rm -R example/node_modules/@captain-omega/react-native-tree-view/example\n$ cd example\n$ react-native run-android\n$ react-native run-ios\n``` \n","readmeFilename":"README.md"}