{"id":16011451,"url":"https://github.com/bradmartin/nativescript-hold-to-load","last_synced_at":"2026-05-08T01:49:00.209Z","repository":{"id":71694252,"uuid":"61971369","full_name":"bradmartin/nativescript-hold-to-load","owner":"bradmartin","description":"Nativescript plugin for press (hold) background animation","archived":false,"fork":false,"pushed_at":"2016-06-26T03:41:16.000Z","size":3776,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-10T11:09:24.235Z","etag":null,"topics":["android","animation","nativescript","nativescript-plugin"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradmartin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-26T03:03:31.000Z","updated_at":"2024-05-30T16:32:46.000Z","dependencies_parsed_at":"2023-05-15T09:45:27.407Z","dependency_job_id":null,"html_url":"https://github.com/bradmartin/nativescript-hold-to-load","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-hold-to-load","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-hold-to-load/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-hold-to-load/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmartin%2Fnativescript-hold-to-load/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradmartin","download_url":"https://codeload.github.com/bradmartin/nativescript-hold-to-load/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280177,"owners_count":20912965,"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":["android","animation","nativescript","nativescript-plugin"],"created_at":"2024-10-08T13:42:52.140Z","updated_at":"2026-05-08T01:48:55.171Z","avatar_url":"https://github.com/bradmartin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/nativescript-hold-to-load.svg)](https://www.npmjs.com/package/nativescript-hold-to-load)\n[![npm](https://img.shields.io/npm/dt/nativescript-hold-to-load.svg?label=npm%20downloads)](https://www.npmjs.com/package/nativescript-hold-to-load)\n\n# NativeScript-Hold-To-Load\nNativescript plugin for press (hold) background animation.\n\n*Android Only*\n\n## Sample\n\n![Demo](./screens/demo.gif)\n\n#### Native Library\n[HoldToLoadLayout](https://github.com/melihaksoy/HoldToLoadLayout)\n\n## Installation\nFrom your command prompt/termial go to your app's root folder and execute:\n\n`npm install nativescript-hold-to-load`\n\n\n## Usage\n#### XML:\n```XML\n\u003cPage \n  xmlns=\"http://schemas.nativescript.org/tns.xsd\" \n  xmlns:HL=\"nativescript-hold-to-load\" loaded=\"pageLoaded\"\u003e\n  \u003cActionBar title=\"Hold to Load\" /\u003e\n  \u003cStackLayout\u003e\n    \n    \u003cHL:HoldToLoadLayout duration=\"1000\" startColor=\"#3489db\" strokeWidth=\"50\" stopWhenFilled=\"true\" holdComplete=\"{{ completed }}\" holdReset=\"{{ reset }}\"\u003e\n        \u003cLabel text=\"Press and Hold\" class=\"message\" textWrap=\"true\"/\u003e\n    \u003c/HL:HoldToLoadLayout\u003e\n\n\n    \u003cHL:HoldToLoadLayout startColor=\"#ff4081\" endColor=\"#336699\" strokeWidth=\"120\" strokeAlpha=\"225\" holdComplete=\"{{ completed }}\" holdReset=\"{{ reset }}\" angleChange=\"{{ angleChange }}\"\u003e\n        \u003cImage src=\"~/images/bart.png\" class=\"circle-image\" stretch=\"aspectFit\" /\u003e\n    \u003c/HL:HoldToLoadLayout\u003e\n\n  \u003c/StackLayout\u003e\n\u003c/Page\u003e\n\n```\n\n\n\n## Attributes\n**startColor - (color string)** - *required*\n\nAttribute to set the starting color.\n \n**endColor - (color string)** - *optional*\n\nAttribute to set the ending color of the gradient, if not specified the startColor will be used.\n\n**duration - (number)** - *optional*\n\nSet duration of fill time in milliseconds. Default is 1500.\n\n\n**strokeWidth - (number)** - *optional*\nSets the stroke width. Default is 0.\n\n**strokeAlpha - (number)** - *optional*\nSets the paint's alpha value. ** Value range is between 0 \u0026 255. ** Default alpha value is 255.\n\n**playReverseAnimation - (boolean)** - *optional*\nSets if to animate the reverse animation. If set false, the loading will disappear instantly. Default is true.\n\n**stopWhenFilled - (boolean)** - *optional*\nIf set true, loading will stop when it's completed. If set false, loading will be reversed even if it is full. Default is true.\n\n**startAngle - (number)** - *optional*\nSet the loading's starting point as angle. Default value is 270.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradmartin%2Fnativescript-hold-to-load","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradmartin%2Fnativescript-hold-to-load","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradmartin%2Fnativescript-hold-to-load/lists"}