An open API service indexing awesome lists of open source software.

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.

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