{"id":15371528,"url":"https://github.com/nathanwalker/nativescript-shimmer","last_synced_at":"2025-04-15T14:25:59.106Z","repository":{"id":57308753,"uuid":"67896812","full_name":"NathanWalker/nativescript-shimmer","owner":"NathanWalker","description":"Facebook Shimmer effect for your NativeScript app - iOS and Android.","archived":false,"fork":false,"pushed_at":"2020-01-09T21:38:33.000Z","size":2320,"stargazers_count":13,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T19:10:01.260Z","etag":null,"topics":["android","facebook","facebook-shimmer","ios","nativescript","shimmer"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/NathanWalker.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":"2016-09-10T22:07:38.000Z","updated_at":"2024-05-30T16:12:21.000Z","dependencies_parsed_at":"2022-08-29T01:51:00.594Z","dependency_job_id":null,"html_url":"https://github.com/NathanWalker/nativescript-shimmer","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/NathanWalker%2Fnativescript-shimmer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NathanWalker%2Fnativescript-shimmer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NathanWalker%2Fnativescript-shimmer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NathanWalker%2Fnativescript-shimmer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NathanWalker","download_url":"https://codeload.github.com/NathanWalker/nativescript-shimmer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249087239,"owners_count":21210601,"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","facebook","facebook-shimmer","ios","nativescript","shimmer"],"created_at":"2024-10-01T13:47:24.914Z","updated_at":"2025-04-15T14:25:59.087Z","avatar_url":"https://github.com/NathanWalker.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## NativeScript Shimmer\n\nFacebook shimmer effect for your NativeScript app.\n\nUses the following native plugins:\n\n* iOS: https://github.com/facebook/Shimmer\n* Android: http://facebook.github.io/shimmer-android/\n\n### Demo\n\n![Demo](https://cdn.filestackcontent.com/PGhmVZmQqOYjv5v0OCl5?v=0)\n\n### Usage\n\n* `main-page.xml`:\n\n```XML\n\u003cPage xmlns=\"http://schemas.nativescript.org/tns.xsd\" \n  xmlns:sh=\"nativescript-shimmer\" \n  loaded=\"pageLoaded\"\u003e\n  \u003cStackLayout\u003e\n    \u003csh:Shimmer id=\"shimmer\"\u003e\n      \u003cLabel text=\"Shimmer\" /\u003e     \n    \u003c/sh:Shimmer\u003e\n    \u003cButton text=\"Toggle\" tap=\"{{toggleShimmer}}\" /\u003e\n  \u003c/StackLayout\u003e\n\u003c/Page\u003e\n```\n\n* `main-page.ts`:\n\n```Javascript\nimport {EventData, Observable} from \"data/observable\";\nimport {Page} from \"ui/page\";\n\n// Event handler for Page \"loaded\" event attached in main-page.xml\nexport function pageLoaded(args: observable.EventData) {\n    // Get the event sender\n    let page = \u003cPage\u003eargs.object;\n    page.bindingContext = new ShimmerDemo(page);\n}\n\nclass ShimmerDemo extends Observable {\n  private _enableTxt: string;\n  private _shimmer: any;\n\n  constructor(page: Page) {\n    super();\n    this._shimmer = page.getViewById('shimmer');\n  }\n\n  public toggleShimmer() {\n    this._shimmer.enabled = !this._shimmer.enabled;\n  }\n}\n```\n\n### LICENSE\n\nBSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanwalker%2Fnativescript-shimmer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanwalker%2Fnativescript-shimmer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanwalker%2Fnativescript-shimmer/lists"}