# react-native-stylist

> ## 安装

Latest version **0.0.2** (published 2020-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-stylist
pnpm add react-native-stylist
yarn add react-native-stylist
bun add react-native-stylist
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2020-05-28 |
| First published | 2020-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | shiddong |
| Maintainers | shiddong |

## Links

- npm: https://www.npmjs.com/package/react-native-stylist
- Repository: https://github.com/shiddong/react-native-stylist
- Homepage: https://github.com/shiddong/react-native-stylist#readme
- Issues: https://github.com/shiddong/react-native-stylist/issues
- npm.io page: https://npm.io/package/react-native-stylist

## Recent versions

- 0.0.2 (latest) — 2020-05-28

## README

# React-Native Stylist

## 安装

```sh
yarn add react-native-stylist
```

或者

```sh
npm install react-native-stylist
```

## 使用方式

```js
import React from "react";
import { View } from "react-native";
import stylist from "react-native-stylist";
import styles from "./styles";

export const Foo = () => {
  return (
    <View
      style={stylist([
        // styles.common, // 基本样式，暂不支持
        {
          style: styles.selected, // 选中样式
          use: true,
        },
        {
          style: styles.unSelected, // 未选中样式
          use: false,
        },
      ])}
    />
  );
};
```

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