Skip to content

Commit

Permalink
Add badges
Browse files Browse the repository at this point in the history
  • Loading branch information
talisk committed Nov 20, 2016
1 parent f301bfd commit 9ea469e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"react": "15.3.2",
"react-native": "^0.37.0",
"react-native-banner-lite": "^1.0.0"
"react-native-banner-lite": "^1.0.1"
},
"jest": {
"preset": "jest-react-native"
Expand Down
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[![npm](https://img.shields.io/npm/v/react-native-banner-lite.svg?style=flat)]()
[![Gemnasium](https://img.shields.io/gemnasium/mathiasbynens/he.svg)]()
[![npm](https://img.shields.io/npm/l/express.svg)]()

# react-native-banner-lite

A banner component with adsorption. Compatible with iOS and Android.
Expand All @@ -10,6 +14,8 @@ A banner component with adsorption. Compatible with iOS and Android.

![](/Preview/p01.gif)

**[Play in the React Native Playground](https://rnplay.org/apps/-Ks6Lg)**

## Getting Started

### Installation
Expand Down Expand Up @@ -81,18 +87,18 @@ See the example code in the Example folder.

### Parameters

| Name | Type | Description |
| :---- | :------: | :--- |
| items | `array` | banner items array |
| Name | Type | Description |
| :---- | :-----: | :----------------- |
| items | `array` | banner items array |

The items is an array of objects. The object contains 4 props.

| Name | Type | Description |
| :---- | :------: | :--- |
| title | `string` | title of the banner item |
| subtitle | `string` | subtitle of the banner item |
| imageURL | `string` | background image of the banner item |
| onPress | `func` | callback of the banner item tap event |
| Name | Type | Description |
| :------- | :------: | :------------------------------------ |
| title | `string` | title of the banner item |
| subtitle | `string` | subtitle of the banner item |
| imageURL | `string` | background image of the banner item |
| onPress | `func` | callback of the banner item tap event |

## Contribution

Expand Down

0 comments on commit 9ea469e

Please sign in to comment.