0.0.6 • Published 4 years ago

@shiddong/react-native-stylist v0.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

React-Native Stylist

安装

yarn add @shiddong/react-native-stylist

或者

npm install @shiddong/react-native-stylist

使用方式

import React from "react";
import { View } from "react-native";
import stylist from "@shiddong/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,
        },
      ])}
    />
  );
};
0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago