Skip to content

APSL/react-native-item-cell

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

react-native-item-cell

A React Native default iOS item cell. The cell grows with the inner text.

ItemCell component screenshot

Install

RN>=0.18 is required for 1.4.x. Install the package:

$ 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

<ItemCell>
  Item
</ItemCell>

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