# react-native-unordered-list

> A simple React Native component to display an unordered list (bullet points).

Latest version **1.0.4** (published 2020-04-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-unordered-list
pnpm add react-native-unordered-list
yarn add react-native-unordered-list
bun add react-native-unordered-list
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2020-04-20 |
| First published | 2020-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Qi Xi |
| Maintainers | xiqi |
| Keywords | react-native unordered list, react-native, unordered list, bullet point, list, ul |

## Links

- npm: https://www.npmjs.com/package/react-native-unordered-list
- Repository: https://github.com/xiqi/react-native-unordered-list
- Issues: https://github.com/xiqi/react-native-unordered-list/issues
- npm.io page: https://npm.io/package/react-native-unordered-list

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2020-04-20
- 1.0.3 — 2020-04-10
- 1.0.2 — 2020-03-22
- 1.0.1 — 2020-03-22
- 1.0.0 — 2020-01-22

## README

# react-native-unordered-list

[![npm](https://img.shields.io/npm/v/react-native-unordered-list)](https://www.npmjs.com/package/react-native-unordered-list)

 React Native Unordered List Component

## Installation

`yarn add react-native-unordered-list` or `npm install react-native-unordered-list --save`

and then import into your component

```javascript
import Unorderedlist from 'react-native-unordered-list';
```


## Usage

### Basic Usage

```javascript
<Unorderedlist><Text>item</Text></Unorderedlist>
```

### Nested List

[![Nested List](https://user-images.githubusercontent.com/4802250/72935146-c0aed880-3d9f-11ea-90a4-c9391747c5cd.jpeg)](#)

```javascript
<Unorderedlist><Text>Grandparent</Text>
    <Unorderedlist><Text>Parent</Text>
        <Unorderedlist><Text>Child</Text></Unorderedlist>
    </Unorderedlist>
</Unorderedlist>
 ```

### Customized bullet character and styles

```javascript
<Unorderedlist bulletUnicode={0x2765}><Text>Grandparent</Text>
<Unorderedlist color='red'><Text>Red</Text>
<Unorderedlist bulletUnicode={0x2765} color='red' style={{ fontSize: 100 }}><Text>GIANT RED BULLET</Text>
```

Some commonly used bullet characters are:

```javascript
0x2022 •
0x25E6 ◦
0x25AA ▪
0x2023 ‣
0x2043 ⁃
0x25D8 ◘
0x2765 ❥
0x29BE ⦾
0x29BF ⦿
```

Find more: https://home.unicode.org/


## API

| Property       | Type                       | Description                 |
|:--------------:|:--------------------------:|:---------------------------:|
| `bulletUnicode` | A hex number (e.g. `0x2765`) | Customized bullet character |
| `color` | A color string (e.g. `'red'`, `'#FF0000'`, `'rgb(255,0,0)'`) | Customized bullet color. This property takes precedence over the `color` specified in `style` |
| `style` | A text style props object (e.g. `{fontSize: 100}`) | [Text Style Props](https://reactnative.dev/docs/text-style-props) |


## Example

[![A complete example](https://user-images.githubusercontent.com/4802250/72935420-45015b80-3da0-11ea-8e0e-318d4e8941d5.jpeg)](#)


```javascript
import React from 'react';
import { Text } from 'react-native';
import Unorderedlist from 'react-native-unordered-list';

export default () => {
    return (
        <View>

           <Unorderedlist><Text>Buy some things</Text>
                <Unorderedlist><Text>Eggs</Text></Unorderedlist>
                <Unorderedlist><Text>A guitar</Text></Unorderedlist>
                <Unorderedlist><Text>A bunny</Text>
                    <Unorderedlist><Text>a white one</Text></Unorderedlist>
                    <Unorderedlist><Text>and a black one</Text></Unorderedlist>
                </Unorderedlist>
            </Unorderedlist>
            <Unorderedlist bulletUnicode={0x2765}><Text>Buy some books</Text>
                <Unorderedlist bulletUnicode={0x2023}><Text>Kafka on the Shore</Text></Unorderedlist>
                <Unorderedlist bulletUnicode={0x2023}><Text>Animal Farm</Text></Unorderedlist>
                <Unorderedlist bulletUnicode={0x2023}><Text>The Art of Computer Programming</Text></Unorderedlist>
            </Unorderedlist>
        
        </View>
    );
};
```

## Removal

`yarn remove react-native-unordered-list` or `npm uninstall react-native-unordered-list --save`
and then delete your import statement

## Contact the Author

Qi Xi

me@imxiqi.com

---
_Source: https://npm.io/package/react-native-unordered-list · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
