1.1.0 • Published 7 years ago

nativescript-easy-notification-banner v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
7 years ago

EasyNotificationBanner

Banner notification for NativeScript.

Based on:

Sample iOS

Installation

tns plugin add nativescript-easy-notification-banner

Usage

import { Component, OnInit } from '@angular/core';
import { EasyNotificationBanner } from 'nativescript-easy-notification-banner';

@Component({
  selector: 'ad-main',
  template: '<page-router-outlet></page-router-outlet>'
})
export class AppComponent {
  private notificationBanner: EasyNotificationBanner;
  constructor() {
    this.notificationBanner = new EasyNotificationBanner();
  }

  ngOnInit(){
    this.notificationBanner.showSuccess('Celebrate!', 'A new version is available')
      .then(() => console.log('this is really easy!'))
    ;
   }
}

TODO

- [] allow custom design
- [] allow custom duration
- [] enable buttons inside the banner
- [] support android

Contributions are welcome! :)

Donate

bitcoin:1EAqBrcWKGS3VG1ktUxCje2E6hYTQRHRRV

donate

also greenaddress

License

Apache License Version 2.0, January 2004

1.1.0

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago