Socket
Socket
Sign inDemoInstall

react-native-listitem

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-listitem

iOS-style listitem component


Version published
Weekly downloads
18
decreased by-21.74%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-listitem

react-native-listitem acts as a quick default for iOS-native styling of a listitem

listitem preview

Installation

npm install --save react-native-listitem

Usage example

note: see example/index.ios.js for more detailed example

var Listitem = require('react-native-listitem')

// Listitem component
<Listitem
  text="Hello"
  onPress={ function(){console.log('pressed')} } />

Props

PropTypeOptionalDefaultDescription
textstringYesnulltext displayed in listitem
childrenstringYesnullpass custom component as child
backgroundColorstringYes'#ffffff'
indentintYes15paddingLeft for listitem contents
onPressfuncYesnullfunction executed onPress
stylestringYescustom style for listitem
styleTextstringYescustom style for listitem text

To Do

https://github.com/dancormier/react-native-listitem/issues

Keywords

FAQs

Package last updated on 09 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc