Skip to content

A lightweight ES6 based notification banner - coming with different types and positions.

License

Notifications You must be signed in to change notification settings

lambus-platform/titanium-notification-banner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Titanium Notification Banner

A notification banner for Titanium that uses full native API's to modally present messages.

Requirements

  • Titanium 9.0.0+

Android

Add

repositories {
    maven { url "https://jitpack.io" }
}

to the app build.gradle file.

Example

import NotificationBanner from 'ti.notificationbanner';

NotificationBanner.show({
  title: 'Titanium rocks!',
  duration: 2,
  subtitle: 'It seriously does',
  backgroundColor: 'green',
});

Methods

  • show(options)

Properties

  • title (Required)
  • subtitle (Optional)
  • backgroundColor (Optional)
  • duration (Optional)
  • elevation (Optional)
  • onClick: callback function for banner click (Optional)

License

MIT

Author

Hans Knöchel, Lambus GmbH