https://github.com/nathanwalker/nativescript-shimmer
Facebook Shimmer effect for your NativeScript app - iOS and Android.
https://github.com/nathanwalker/nativescript-shimmer
android facebook facebook-shimmer ios nativescript shimmer
Last synced: 6 months ago
JSON representation
Facebook Shimmer effect for your NativeScript app - iOS and Android.
- Host: GitHub
- URL: https://github.com/nathanwalker/nativescript-shimmer
- Owner: NathanWalker
- Created: 2016-09-10T22:07:38.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-09T21:38:33.000Z (over 5 years ago)
- Last Synced: 2025-04-11T19:10:01.260Z (6 months ago)
- Topics: android, facebook, facebook-shimmer, ios, nativescript, shimmer
- Language: TypeScript
- Homepage:
- Size: 2.21 MB
- Stars: 13
- Watchers: 2
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## NativeScript Shimmer
Facebook shimmer effect for your NativeScript app.
Uses the following native plugins:
* iOS: https://github.com/facebook/Shimmer
* Android: http://facebook.github.io/shimmer-android/### Demo

### Usage
* `main-page.xml`:
```XML
```
* `main-page.ts`:
```Javascript
import {EventData, Observable} from "data/observable";
import {Page} from "ui/page";// Event handler for Page "loaded" event attached in main-page.xml
export function pageLoaded(args: observable.EventData) {
// Get the event sender
let page = args.object;
page.bindingContext = new ShimmerDemo(page);
}class ShimmerDemo extends Observable {
private _enableTxt: string;
private _shimmer: any;constructor(page: Page) {
super();
this._shimmer = page.getViewById('shimmer');
}public toggleShimmer() {
this._shimmer.enabled = !this._shimmer.enabled;
}
}
```### LICENSE
BSD