diff --git a/Example/package.json b/Example/package.json index 759b37d..6f2c9a5 100644 --- a/Example/package.json +++ b/Example/package.json @@ -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" diff --git a/README.md b/README.md index 8dd90e8..ef463a7 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 @@ -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