Skip to content
This repository was archived by the owner on Mar 30, 2022. It is now read-only.

Commit d554ed2

Browse files
committed
adding list docs
1 parent bcec109 commit d554ed2

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,32 @@ import SocialIcon from 'HSSocialIcon'
8888
| iconColor | white | string | icon color |
8989
| title | none | string | title if made into a button |
9090

91+
## Lists
92+
93+
![Lists](http://i.imgur.com/D8Y4mp3l.png)
94+
95+
```
96+
import List from 'HSList'
97+
import ListItem from 'HSListItem'
98+
99+
// Can also replace map function with RN ListView implementation
100+
<List>
101+
{
102+
list2.map((l, i) => (
103+
<ListItem
104+
roundAvatar
105+
avatar={l.avatar_url}
106+
key={i}
107+
onPress={log}
108+
title={l.name}
109+
subtitle={l.subtitle}
110+
/>
111+
))
112+
}
113+
</List>
114+
115+
```
116+
91117
## Forms
92118

93119
![Forms](http://i.imgur.com/9idGiXr.png)

src/more/More.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class More extends Component {
7979
))
8080
}
8181
</List>
82-
<List>
82+
<List containerStyle={{marginBottom: 20}}>
8383
{
8484
list2.map((l, i) => (
8585
<ListItem

0 commit comments

Comments
 (0)