# aiserg-react-native-snackbar

> React Native Snackbar

Latest version **0.1.6** (published 2016-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install aiserg-react-native-snackbar
pnpm add aiserg-react-native-snackbar
yarn add aiserg-react-native-snackbar
bun add aiserg-react-native-snackbar
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2016-11-23 |
| First published | 2016-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Aiserg |
| Maintainers | aiserg |

## Links

- npm: https://www.npmjs.com/package/aiserg-react-native-snackbar
- Repository: https://github.com/aiserg/react-native-snackbar
- Homepage: https://github.com/aiserg/react-native-snackbar#readme
- Issues: https://github.com/aiserg/react-native-snackbar/issues
- npm.io page: https://npm.io/package/aiserg-react-native-snackbar

## Recent versions

- 0.1.6 (latest) — 2016-11-23
- 0.1.5 — 2016-11-22
- 0.1.4 — 2016-11-22
- 0.1.3 — 2016-11-02
- 0.1.2 — 2016-10-10
- 0.1.1 — 2016-10-10
- 0.1.0 — 2016-10-04

## README

# react-native-snackbar
Implementation of the material design snacker component. See [Google Design](https://www.google.com/design/spec/components/snackbars-toasts.html#snackbars-toasts-usage)


## Installation
To use this extension, you have to do the following steps:

1. In your react-native project, run 
	```
	npm install react-native-snackbar
	```
	
2. Link your library using `rpm link` (learn more about [rnpm](https://github.com/rnpm/rnpm)) or following react-native doc [guide](http://facebook.github.io/react-native/docs/linking-libraries-ios.html).

3. Import it in you JS, where you want to show a snacker
	```
	import Snackbar from 'react-native-snackbar' 
	```

## Usage

To show a simple snackbar simply call:
```
Snackbar.show({
	title: 'Hello world',
	duration: Snackbar.LENGTH_INDEFINITE, // optional
	// Can be .LENGTH_INDEFINITE | .LENGTH_LONG | LENGTH_SHORT
})
```
*..Preview..*

To add an action:
```
Snackbar.show({
	title: 'Hello world',
	action: {
		title: 'UNDO',
		color: 'green',
		onPress: () => {
			// do something here
		},
	},
})
```
*..Preview..*

---
_Source: https://npm.io/package/aiserg-react-native-snackbar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
