Skip to content

Commit

Permalink
Update documentation to reflect badge API changes
Browse files Browse the repository at this point in the history
The Lists documentation is out-of-date following changes to the Badge API.
Updated to reflect the changes to the Badge API, namely "badgeContainerStyle" and "badgeTextStyle"
  • Loading branch information
cubehouse committed Jul 15, 2017
1 parent 9d0ff03 commit e6eeda3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/API/lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ Example badge usage
```js
<ListItem
...
badge={{ value: 3, badgeTextStyle: { color: 'orange' }, badgeContainerStyle: { marginTop: -20 } }}
badge={{ value: 3, textStyle: { color: 'orange' }, containerStyle: { marginTop: -20 } }}
/>

<ListItem
Expand All @@ -285,4 +285,4 @@ Example badge usage

| prop | default | type | description |
| ---- | ---- | ----| ---- |
| badge | none | object, accepts the following properties: value (string), badgeContainerStyle (object), badgeTextStyle (object). You can override the default badge by providing your own component with it's own styling by providing badge={{ element: <YourCustomElement /> }} | add a badge to the ListItem by using this prop |
| badge | none | object, accepts the following properties: value (string), containerStyle (object), textStyle (object). You can override the default badge by providing your own component with it's own styling by providing badge={{ element: <YourCustomElement /> }} | add a badge to the ListItem by using this prop |

0 comments on commit e6eeda3

Please sign in to comment.