1.0.5 • Published 6 years ago

react-native-lists-library v1.0.5

Weekly downloads
24
License
MIT
Repository
github
Last release
6 years ago

react-native-lists

A React Native component library that mimics the HTML ordered and unordered list elements.

Installation

If you use yarn:

yarn add react-native-lists

If you use npm:

npm install react-native-lists --save

Usage

import React, { Component } from 'react';
import { OrderedList, ListItem } from 'react-native-lists';
import { Text } from 'react-native';

class App extends Component {
  render() {
    return (
      <OrderedList type="I">
        <ListItem>
          <Text>Chapter One</Text>
        </ListItem>
        <ListItem>
          <Text>Chapter Two</Text>
        </ListItem>
      </OrderedList>
    );
  }
}

Components

UnorderedList

PropTypeDescription
typeString or React elementSupports all regular HTML types ("disc", "circle", "square", "none") as well as custom React elements
customStyleObjectCustom styles for the list object
customBulletStyleObjectCustom styles for the list bullets
alignBulletsOne of: 'top', 'center', 'bottom'Where to align the list bullets

OrderedList

PropTypeDescription
typeStringSupports all regular HTML types ("1", "I", "i", "A", "a")
customStyleObjectCustom styles for the list object
customBulletStyleObjectCustom styles for the list bullets
alignBulletsOne of: 'top', 'center', 'bottom'Where to align the list bullets

ListItem

PropTypeDescription
customStyleObjectCustom styles for the list item
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago