titanium-notification-banner
titanium-notification-banner copied to clipboard
A lightweight ES6 based notification banner - coming with different types and positions.
Titanium Notification Banner
A notification banner for Titanium that uses full native API's to modally present messages.
Requirements
- [x] 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