react-native-listitem
Version:
iOS-style listitem component
39 lines (28 loc) • 1.34 kB
Markdown
as a quick default for iOS-native styling of a listitem

```
npm install --save react-native-listitem
```
note: see [example/index.ios.js](https://github.com/dancormier/react-native-listitem/blob/master/example/index.ios.js) for more detailed example
```
var Listitem = require('react-native-listitem')
// Listitem component
<Listitem
text="Hello"
onPress={ function(){console.log('pressed')} } />
```
Prop | Type | Optional | Default | Description
--------------- | ------ | -------- | --------- | -----------
text | string | Yes | null | text displayed in listitem
children | string | Yes | null | pass custom component as child
backgroundColor | string | Yes | '#ffffff' |
indent | int | Yes | 15 | paddingLeft for listitem contents
onPress | func | Yes | null | function executed onPress
style | string | Yes | | custom style for listitem
styleText | string | Yes | | custom style for listitem text
[ ](https://github.com/dancormier/react-native-listitem/issues)
react-native-listitem acts