https://github.com/lambus-platform/titanium-notification-banner
A lightweight ES6 based notification banner - coming with different types and positions.
https://github.com/lambus-platform/titanium-notification-banner
cross-platform es6-javascript notification-banner titanium
Last synced: 8 days ago
JSON representation
A lightweight ES6 based notification banner - coming with different types and positions.
- Host: GitHub
- URL: https://github.com/lambus-platform/titanium-notification-banner
- Owner: lambus-platform
- License: mit
- Created: 2018-11-09T15:56:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-25T10:48:28.000Z (over 2 years ago)
- Last Synced: 2024-11-10T06:09:26.049Z (7 months ago)
- Topics: cross-platform, es6-javascript, notification-banner, titanium
- Language: Objective-C
- Size: 17.7 MB
- Stars: 26
- Watchers: 5
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```js
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