Song-YanLong / react-native-popular-components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-popular-components

'...'

Installation

npm

npm install react-native-popular-components

yarn

yarn add react-native-popular-components

Usage

import { multiply } from 'react-native-popular-components';

// ...计算乘法

const result = await multiply(3, 7);
import { createStyle } from 'react-native-popular-components';

// ...样式

const style = createStyle({
  text: {
    font: 'fontSize fontColor fontWeight',
    padding: 'top right bottom left', //同css 可传1个、2个、3个、4个
    margin: 'top right bottom left', //同css 可传1个、2个、3个、4个
    border_radius: 'top right bottom left', //同css 可传1个、2个、3个、4个
    border: 'borderWidth borderColor borderStyle direction', //第四个参数可选(方向) 默认四周都加边框
  },
});

<Txet style={style.text}>样式<Text>

Contributing

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

License

MIT


Made with create-react-native-library

About

License:MIT License


Languages

Language:Java 40.4%Language:C++ 16.9%Language:Objective-C++ 12.0%Language:TypeScript 10.8%Language:Ruby 7.0%Language:Objective-C 6.2%Language:JavaScript 4.2%Language:Starlark 1.4%Language:CMake 0.7%Language:C 0.2%Language:Swift 0.2%