{"id":15141916,"url":"https://github.com/nstudio/nativescript-cardview","last_synced_at":"2025-09-29T10:31:31.740Z","repository":{"id":57132261,"uuid":"50215198","full_name":"nstudio/nativescript-cardview","owner":"nstudio","description":":diamonds: :clubs: NativeScript widget for Material Design CardView","archived":true,"fork":false,"pushed_at":"2023-01-18T19:53:35.000Z","size":14635,"stargazers_count":283,"open_issues_count":16,"forks_count":48,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-08-09T11:45:24.842Z","etag":null,"topics":["android","cardview","ios","material-design","nativescript","nativescript-plugin","nstudio"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nstudio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-23T00:03:13.000Z","updated_at":"2024-12-07T15:07:14.000Z","dependencies_parsed_at":"2023-02-10T17:30:34.995Z","dependency_job_id":null,"html_url":"https://github.com/nstudio/nativescript-cardview","commit_stats":null,"previous_names":["bradmartin/nativescript-cardview"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/nstudio/nativescript-cardview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstudio%2Fnativescript-cardview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstudio%2Fnativescript-cardview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstudio%2Fnativescript-cardview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstudio%2Fnativescript-cardview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nstudio","download_url":"https://codeload.github.com/nstudio/nativescript-cardview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstudio%2Fnativescript-cardview/sbom","scorecard":{"id":250399,"data":{"date":"2025-08-11","repo":{"name":"github.com/nstudio/nativescript-cardview","commit":"3fad643261c2e944764df676b6a8be6831b2b77c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Code-Review","score":1,"reason":"Found 5/26 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/nstudio/nativescript-cardview/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/nstudio/nativescript-cardview/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/nstudio/nativescript-cardview/build.yml/master?enable=pin","Warn: npmCommand not pinned by hash: publish/pack.sh:10","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T08:20:17.135Z","repository_id":57132261,"created_at":"2025-08-17T08:20:17.135Z","updated_at":"2025-08-17T08:20:17.135Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277502614,"owners_count":25829203,"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","status":"online","status_checked_at":"2025-09-29T02:00:09.175Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","cardview","ios","material-design","nativescript","nativescript-plugin","nstudio"],"created_at":"2024-09-26T09:20:31.129Z","updated_at":"2025-09-29T10:31:26.731Z","avatar_url":"https://github.com/nstudio.png","language":"JavaScript","readme":"## Source management moved to [nstudio/nativescript-plugins](https://github.com/nstudio/nativescript-plugins/tree/main/packages/nativescript-cardview)\n\u003chr/\u003e\n\u003ca align=\"center\" href=\"https://www.npmjs.com/package/@nstudio/nativescript-cardview\"\u003e\n    \u003ch3 align=\"center\"\u003eNativeScript CardView\u003c/h3\u003e\n\u003c/a\u003e\n\u003ch4 align=\"center\"\u003eA NativeScript plugin to provide an XML widget to implement the Material Design CardView component.\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.npmjs.com/package/@nstudio/nativescript-cardview\"\u003e\n        \u003cimg src=\"https://img.shields.io/npm/v/@nstudio/nativescript-cardview.svg\" alt=\"npm\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/@nstudio/nativescript-cardview\"\u003e\n        \u003cimg src=\"https://img.shields.io/npm/dt/@nstudio/nativescript-cardview.svg?label=npm%20downloads\" alt=\"npm\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## Installation\n\nNativeScript 7+:\n\n```bash\nns plugin add @nstudio/nativescript-cardview\n```\n\nNativeScript prior to 7:\n\n```bash\ntns plugin add @nstudio/nativescript-cardview@1.0.0\n```\n\n---\n\n##### [Material Design Card Spec](https://www.google.com/design/spec/components/cards.html)\n\n##### [CardView Android Documentation](http://developer.android.com/intl/zh-tw/reference/android/support/v7/widget/CardView.html)\n\n## Usage\n\n_iOS note: Setting a background-color will help if you do not see the card on the page._\n\n### NativeScript Plain\n\n\u003cspan style=\"color:red\"\u003eIMPORTANT: \u003c/span\u003e_Make sure you include `xmlns:Card=\"@nstudio/nativescript-cardview\"` on the Page element_\n\n#### XML\n\n```xml\n\u003cPage xmlns:Card=\"@nstudio/nativescript-cardview\"\u003e\n   \u003cStackLayout\u003e\n      \u003cCard:CardView class=\"cardStyle\" margin=\"10\" elevation=\"40\" radius=\"5\"\u003e\n           \u003cgrid-layout rows=\"200, auto, auto\" columns=\"auto, auto, *\"\u003e\n               \u003cimage src=\"~/images/batman.jpg\" stretch=\"aspectFill\" colSpan=\"3\" row=\"0\" /\u003e\n               \u003clabel text=\"Batman wants to be friends?\" class=\"info\" textWrap=\"true\" row=\"1\" colSpan=\"3\" /\u003e\n               \u003cbutton text=\"DECLINE\" tap=\"goAway\" row=\"2\" col=\"0\" /\u003e\n               \u003cbutton text=\"ACCEPT\" row=\"2\" col=\"1\" /\u003e\n           \u003c/grid-layout\u003e\n       \u003c/Card:CardView\u003e\n   \u003c/StackLayout\u003e\n\u003c/Page\u003e\n```\n\n#### CSS\n\n```css\n.cardStyle {\n  background-color: #3489db;\n  color: #fff;\n}\n```\n\n---\n\n### NativeScript Angular\n\n```typescript\nimport { registerElement } from '@nativescript/angular';\nimport { CardView } from '@nstudio/nativescript-cardview';\nregisterElement('CardView', () =\u003e CardView);\n```\n\n```html\n\u003cCardView class=\"cardStyle\" margin=\"10\" elevation=\"40\" radius=\"1\"\u003e\n  \u003cGridLayout rows=\"10,30,30,250, auto, auto,10\" columns=\"10,40, *, 30,10\"\u003e\n    \u003cimage\n      src=\"res://profile\"\n      stretch=\"aspectFit\"\n      verticalAlignment=\"stretch\"\n      col=\"1\"\n      row=\"1\"\n      rowSpan=\"2\"\n    \u003e\u003c/image\u003e\n    \u003clabel\n      class=\"createdBy text-left\"\n      horizontalAlignment=\"left\"\n      [text]=\"item.CreatedBy\"\n      row=\"1\"\n      col=\"2\"\n      textWrap=\"true\"\n    \u003e\u003c/label\u003e\n    \u003clabel\n      class=\"createdOn text-left\"\n      horizontalAlignment=\"left\"\n      [text]=\"item.UpdatedDate\"\n      row=\"2\"\n      col=\"2\"\n    \u003e\u003c/label\u003e\n    \u003cimage\n      [src]=\"'https://img.youtube.com/vi/'+item.MediaURL+'/mqdefault.jpg'\"\n      stretch=\"aspectFit\"\n      colSpan=\"3\"\n      col=\"1\"\n      row=\"3\"\n    \u003e\u003c/image\u003e\n    \u003clabel\n      horizontalAlignment=\"left\"\n      [text]=\"item.Title\"\n      colSpan=\"3\"\n      row=\"4\"\n      textWrap=\"true\"\n      col=\"1\"\n    \u003e\u003c/label\u003e\n    \u003clabel\n      horizontalAlignment=\"left\"\n      [text]=\"item.Summary\"\n      textWrap=\"true\"\n      col=\"1\"\n      row=\"5\"\n      colSpan=\"3\"\n    \u003e\u003c/label\u003e\n  \u003c/GridLayout\u003e\n\u003c/CardView\u003e\n```\n\n---\n\n### NativeScript Vue\n\n```javascript\nimport Vue from 'nativescript-vue';\nVue.registerElement(\n  'CardView',\n  () =\u003e require('@nstudio/nativescript-cardview').CardView\n);\n```\n\n```html\n\u003ccard-view margin=\"10\" elevation=\"40\" radius=\"1\"\u003e\n  \u003cstack-layout\u003e\n    \u003clabel text=\"Hello World\"\u003e\u003c/label\u003e\n  \u003c/stack-layout\u003e\n\u003c/card-view\u003e\n```\n\n---\n\n### Attributes\n\n- **radius** _optional_\n\nAn attribute to control the 'border-radius' of the card.\n\n### Platform specific options\n\n#### Android\n\n- **elevation** _optional_\n\nAn attribute to set the elevation of the card. This will increase the 'drop-shadow' of the card.\nThere can be some performance impact when using a very high elevation value.\n\n- **ripple** _optional_\n\nSet to 'true' to show a ripple when the card is tapped. Tap event handlers in the card content will prevent the ripple.\n\n#### iOS\n\n- **shadowOffsetWidth** _optional_\n\nAn attribute to offset the x position of the shadow behind the card.\n\n- **shadowOffsetHeight** _optional_\n\nAn attribute to offset the y position of the shadow behind the card.\n\n- **shadowColor** _optional_\n\nAn attribute to set the color of the shadow behind the card.\n\n- **shadowOpacity** _optional_\n\nAn attribute to set the opacity of the shadow behind the card.\n\n- **shadowRadius** _optional_\n\nAn attribute to set the radius of the shadow (shadow spread) behind the card.\n\nThe default values are set to:\n\n```\nradius = 2;\nshadowOffsetWidth = 0;\nshadowOffsetHeight = 2;\nshadowColor = new Color('#000').ios\nshadowOpacity = 0.4;\nshadowRadius = 1;\n```\n\n### Sample Screenshots\n\n#### Android\n\n| Sample 1                            | Sample 2                            |\n| ----------------------------------- | ----------------------------------- |\n| ![Sample1](images/sample_card1.png) | ![Sample2](images/sample_card2.png) |\n\n#### iOS\n\n| Sample 1                                | Sample 2                                |\n| --------------------------------------- | --------------------------------------- |\n| ![Sample1](images/sample_card1_ios.png) | ![Sample2](images/sample_card3_ios.png) |\n\n## Run Demo\n\n```bash\ngit clone https://github.com/nstudio/nativescript-cardview.git\n\nnpm run demo.ios\n\n// or...\n\nnpm run demo.android\n```\n\n## [Changelog](./CHANGELOG.md)\n\n## [Contributing](./CONTRIBUTING.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstudio%2Fnativescript-cardview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnstudio%2Fnativescript-cardview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstudio%2Fnativescript-cardview/lists"}