react-native-item-list

1.0.8 • Public • Published

react-native-item-list

npm version license npm

A simple React Native component for displaying list-item in your projects.

Installation

npm install react-native-list-item

Usage

Import the Card component into the part where you want to use it.

Example :

import React from 'react';
import { View } from 'react-native';
import ListItem from 'react-native-list-item';

const App = () => {
  return (
    <View>
      <ListItem
        image={'https://placehold.co/500x500/png'}
        title={"First Item"}
        icon={require('./src/ListItem/icons/menu.png')}
       />
    </View>
  );
};
export default App;

Customization

If you want to pass an image or icon with the url, don't specify the uri, use it as in the example above

An overview

Texte alternatif

Package Sidebar

Install

npm i react-native-item-list

Weekly Downloads

1

Version

1.0.8

License

MIT

Unpacked Size

24.4 kB

Total Files

7

Last publish

Collaborators

  • mohirie