react-native-arraylist-view
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

react-native-arraylist-view

npm version npm total downloads licence MIT

Table of contents

Installation

npm i react-native-arraylist-view --save

Usage

import ViewList from 'react-native-arraylist-view';

<ViewList arrayData={[]} />;

Sample Data

[
  {
    name: 'rakesh',
    password: 'password1',
    profession: 'layer',
    address: 'address1',
    image: [
      {
        'before Image':
          'https://p.bigstockphoto.com/GeFvQkBbSLaMdpKXF1Zv_bigstock-Aerial-View-Of-Blue-Lakes-And--227291596.jpg',
        'after Image':
          'https://pixabay.com/images/download/people-2944065_640.jpg',
      },
    ],
  },
  {
    name: 'jagesh',
    password: 'password2',
    profession: 'doctor',
    address: 'address2',
    image: [
      {
        'before Image':
          'https://pixabay.com/images/download/people-2944065_640.jpg',
        'after Image':
          'https://www.yttags.com/blog/wp-content/uploads/2023/02/image-urls-for-testing.webp',
      },
    ],
  },
  {
    name: 'yogesh',
    password: 'password3',
    profession: 'teacher',
    address: 'address2',
    image: [
      {
        'before Image':
          'https://p.bigstockphoto.com/GeFvQkBbSLaMdpKXF1Zv_bigstock-Aerial-View-Of-Blue-Lakes-And--227291596.jpg',
        'after Image':
          'https://www.yttags.com/blog/wp-content/uploads/2023/02/image-urls-for-testing.webp',
      },
    ],
  },
];

Properties

ListView

Prop Default Type Description Required/Optional
arrayData [] Array Array of objects Required
isEdited false Boolean Show and hide edit button Optional
onSelectEdit - Function Callback function received value from list selection Optional
isDeleted false Boolean Show and hide delete button Optional
onSelectDelete - Function Callback function received value from list selection Optional
deleteImage - - Delete Image -
editImage - - Edit Image -

Style Props

Prop Description Type
rowStyle Customize row style Object
rowLabelStyle Customize row title style Object
rowValueStyle Customize row value style Object
containerStyle Customize container style Object

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i react-native-arraylist-view

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

61.3 kB

Total Files

14

Last publish

Collaborators

  • prakhartyagi