Shopify/restyle
关于
使用 TypeScript 在 React Native 中构建 UI 组件的类型约束系统。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -2
- 1个月
- -2
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
The Restyle library provides a type-enforced system for building UI components in React Native with TypeScript. It's a library for building UI libraries, with themability as the core focus.
This library assumes that the UI is built upon a design system that (at the very least) defines a set of colors and spacing constants that lays as a foundation. While the library acknowledges that there can be exceptions to the system by allowing any style to be overridden, it keeps the developer most productive when one-off values are kept to a minimum.
Installation
Add the package to your project using one of the following:
yarn add @shopify/restyle
npm install @shopify/restyle
npx expo install @shopify/restyle
Usage
See Usage in the documentation, or see below for the fixture app.
App / Playground
The fixture is an example app to showcase the library's usage.
Running the Documentation site locally
To run the Documentation site locally, please follow the steps below:
cd documentationyarnyarn start- Go to http://localhost:3000/restyle/
Migrating to restyle v2
Read more about migration to v2 here
Inspiration
Restyle is heavily inspired by https://styled-system.com.
Contributing
For help on setting up the repo locally, building, testing, and contributing please see CONTRIBUTING.md.
Code of Conduct
All developers who wish to contribute through code or issues, take a look at the CODE_OF_CONDUCT.md.
License
MIT, see LICENSE.md for details.
探索相关项目
加载中…