{"id":25645796,"url":"https://github.com/detaysoft/react-native-tree-schema","last_synced_at":"2025-08-07T18:16:27.869Z","repository":{"id":34985310,"uuid":"194103521","full_name":"Detaysoft/react-native-tree-schema","owner":"Detaysoft","description":"Tree component for React Native apps.","archived":false,"fork":false,"pushed_at":"2023-01-04T02:16:08.000Z","size":5832,"stargazers_count":4,"open_issues_count":29,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-15T11:47:32.586Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Detaysoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-27T13:46:37.000Z","updated_at":"2021-10-20T13:10:10.000Z","dependencies_parsed_at":"2022-09-18T21:30:45.653Z","dependency_job_id":null,"html_url":"https://github.com/Detaysoft/react-native-tree-schema","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Detaysoft/react-native-tree-schema","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Detaysoft%2Freact-native-tree-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Detaysoft%2Freact-native-tree-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Detaysoft%2Freact-native-tree-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Detaysoft%2Freact-native-tree-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Detaysoft","download_url":"https://codeload.github.com/Detaysoft/react-native-tree-schema/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Detaysoft%2Freact-native-tree-schema/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263542497,"owners_count":23477454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-23T09:19:31.978Z","updated_at":"2025-07-04T12:33:23.167Z","avatar_url":"https://github.com/Detaysoft.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-tree-schema\nTree component for React Native apps.\n\n![native-tree](https://user-images.githubusercontent.com/30048977/60381527-dacd4600-9a5e-11e9-8305-69bbd305c5e7.gif)\n# Install\n\n```javascript\n\nnpm install react-native-tree-schema\n\n```\n# Architecture\n![image (1)](https://user-images.githubusercontent.com/30048977/56694176-cd0de400-66ee-11e9-9984-6ef9846e7090.png)\n\n# Components\n\n## Root Component\n\n```javascript\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { Icon } from 'react-native-elements';\nimport { Root } from 'react-native-tree-schema';\n\nclass App extends React.Component {\n\n  Icon(color= 'red') {\n    return (\n      \u003cIcon\n        color={color}\n        name='person'/\u003e\n    )\n  }\n  render() {\n    return (\n      \u003cView\u003e\n        \u003cRoot childNodes={[\n          { \n            name: 'React Team',\n            opened: true ,\n            childNodes: [\n              { \n                name: 'Team Leader', \n                icon: this.Icon('#c3352c'),\n                onLongPress: () =\u003e {console.log(\"React is wonderful :) \")},\n                childNodes: [\n                  { name: 'Abdurrahman EKER',\n                    icon: this.Icon('#45a5c9'), \n                  },\n                ]\n              },\n              {\n                name: 'Developers', \n                icon: this.Icon('#f8bc40'),\n                childNodes: [\n                  { \n                    name: 'Kübra TURAN' ,\n                    icon: this.Icon('#45a5c9'),\n                  },\n                  { \n                    name: 'Reyhan ÜNAL' ,\n                    icon: this.Icon('#45a5c9'),\n                  },\n                  { \n                    name: 'Hamza Kürşat ŞİMŞEK' ,\n                    icon: this.Icon('#45a5c9'),\n                  },\n                  { \n                    name: 'Osman PEKAYDIN' ,\n                    icon: this.Icon('#45a5c9'),\n                  },\n                  { \n                    name: 'Aydın Emre ESEN(Yardımcı Talebe:))' ,\n                    icon: this.Icon('#45a5c9'),\n                  },\n                ]\n              },\n            ]\n          }\n        ]}/\u003e\n      \u003c/View\u003e\n    )\n  }\n}\n\nexport default App;\n```\n#### Root props\n| prop | default | type | description |\n| ---- | ---- | ---- | ---- |\n| name | none | string | Node title |\n| childNodes | none | array | Node items |\n| opened | false | boolean | visible nodes of the noden  |\n| icon | none | object | icon of node |\n| onPress | none | function | Node on press |\n| onLongPress | none | function | Node on long press |\n\n\n### Child Node Item\n| prop | default | type | description |\n| ---- | ---- | ---- | ---- |\n| name | none | string | Node title |\n| childNodes | none | array | Node items |\n| opened | false | boolean | visible nodes of the noden  |\n| icon | none | object | icon of node |\n| onPress | none | function | Node on press |\n| onLongPress | none | function | Node on long press |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdetaysoft%2Freact-native-tree-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdetaysoft%2Freact-native-tree-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdetaysoft%2Freact-native-tree-schema/lists"}