Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/APSL/react-native-item-cell
React Native default iOS item cell
https://github.com/APSL/react-native-item-cell
Last synced: 5 days ago
JSON representation
React Native default iOS item cell
- Host: GitHub
- URL: https://github.com/APSL/react-native-item-cell
- Owner: APSL
- License: mit
- Created: 2015-09-03T12:49:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-05T07:33:51.000Z (over 7 years ago)
- Last Synced: 2024-11-28T03:32:26.719Z (14 days ago)
- Language: JavaScript
- Size: 513 KB
- Stars: 72
- Watchers: 14
- Forks: 15
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-native - react-native-item-cell ★69 - React Native default style iOS item cell (Components / UI)
- awesome-react-native - react-native-item-cell ★69 - React Native default style iOS item cell (Components / UI)
- awesome-reactnative-ui - react-native-item-cell - native-item-cell/itemcell.png)| (Others)
- awesome-reactnative-ui - react-native-item-cell - native-item-cell/itemcell.png)| (Others)
- awesome-react-native - react-native-item-cell ★69 - React Native default style iOS item cell (Components / UI)
- awesome-react-native-ui - react-native-item-cell ★46 - React Native default style iOS item cell (Components / UI)
- awesome-react-native - react-native-item-cell ★69 - React Native default style iOS item cell (Components / UI)
README
# react-native-item-cell
A React Native default iOS item cell. The cell grows with the inner text.
## Install
RN>=0.18 is required for `1.4.x`. Install the package:
```bash
$ yarn add react-native-item-cell
```Install ``FontAwesome`` from the awesome Joel Oblador's ``react-native-vector-icons``: https://github.com/oblador/react-native-vector-icons#installation
## Usage
```javascript
Item
```
## Prop API
| Prop | Type | Description |
|------|------|-------------|
|``showDisclosureIndicator`` | ``bool`` | Shows a small arrow at the right side of the cell. |
|``icon`` | ``{uri: string}`` object or ``require()`` | URI to render left icon with an URL for the image source or ``require`` for a local image source. |
|``children`` | ``string`` | The inner text to render. |
| `subtitle` | `string` | An optional subtitle to render below the `children`. |
| `value` | `string` | An optional value to display instead of the disclosure indicator. |
| `backgroundColor` | `string` | The color code of the cell background color. |
| `textStyle` | `Text.propTypes.style` | The cell text style. |
| `chevronColor` | `string` color code | The color code for the disclosure indicator. |## License
MIT
## Author
Álvaro Medina Ballester