vadimdemedes/tailwind-rn — 4.3k★ trên GitHub (JavaScript). 🦎 Use Tailwind CSS in React Native projects
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
input.css - Entrypoint for Tailwind compiler. It's required to override the output of Tailwind, so that it doesn't generate CSS for resetting browser styles, which will cause tailwind-rn to fail.
Disable unsupported utilities by adding this line to your tailwind.config.js:
$ tailwind-rn --help
Use Tailwind CSS in React Native projects
Usage
$ tailwind-rn [options]
Options
-i, --input Path to CSS file that Tailwind generates (default: tailwind.css)
-o, --output Output file (default: tailwind.json)
-w, --watch Watch for changes and rebuild as needed
Run tailwind-rn CLI to transform the CSS generated by Tailwind into a JSON file that can be consumed by TailwindProvider. Add --watch flag to watch for changes and build styles continuously, which is useful for development.
API
TailwindProvider
utilities
Type: object
Parsed JSON object of styles generated by tailwind-rn CLI stored in tailwind.json by default.
import {TailwindProvider} from 'tailwind-rn';
import utilities from './tailwind.json';
const App = () => (
<TailwindProvider utilities={utilities}>
<MyComponent />
</TailwindProvider>
);
colorScheme
Type: string
Override the default color scheme. Possible values are light or dark.
React hook, which returns a tailwind function, that accepts a string with class names. This function returns an object of styles, which can be applied to a React Native view via style property.
Note: Add TailwindProvider above the component where you're using this hook.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/vadimdemedes/tailwind-rn là nguồn chính thức.
vadimdemedes/tailwind-rn có bao nhiêu sao?
vadimdemedes/tailwind-rn có 4.3k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/vadimdemedes/tailwind-rn. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
vadimdemedes/tailwind-rn có phải mã nguồn mở không?
Có — vadimdemedes/tailwind-rn phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/vadimdemedes/tailwind-rn.
vadimdemedes/tailwind-rn còn đang phát triển không?
Commit gần nhất trên vadimdemedes/tailwind-rn là 1.3 năm trước (theo timestamp GitHub). Repo có 170 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
vadimdemedes/tailwind-rn là gì?
vadimdemedes/tailwind-rn (vadimdemedes/tailwind-rn) là dự án JavaScript trên GitHub. Theo mô tả gốc: 🦎 Use Tailwind CSS in React Native projects
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về tailwind-rn?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về tailwind-rn.