Skip to content

ngxiaoyi/react-native-item-cell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

1. Install the package:

option: yarn

$ yarn add react-native-item-cell

option: npm

$ npm install react-native-item-cell --save

2. Install the dependence:

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 React component or {uri: string} object or require() React component or URI to render left icon with an URL for the image source or require for a local image source.
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

About

React Native default iOS item cell

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 49.3%
  • Objective-C 31.3%
  • Python 10.7%
  • Java 8.7%