一个简单、表达力强的 API,用于 tailwindcss + React-native
一个简单、表达力强的 API,用于 tailwindcss + React-native
一个简单、表达力强的 API,用于 TailwindCSS + React Native,编写于 TypeScript 中
import { View, Text } from 'react-native';
import tw from 'twrnc';
const MyComponent = () => (
<View style={tw`p-4 android:pt-2 bg-white dark:bg-black`}>
<Text style={tw`text-md text-black dark:text-white`}>Hello World</Text>
</View>
);tailwind.config.js 以实现全面配置android:mt-4 ios:mt-2bg-white dark:bg-blackw-48 lg:w-64 (此外,还支持任意的: min-w-[600px]:flex-wrap)portrait:flex-col landscape:flex-rowvw 和 vh 单位: h-screen、min-w-screen、w-[25vw] 等…retina 设备像素密度前缀: w-4 retina:w-2mt-[31px] bg-[#eaeaea] text-red-200/75 等…暂无开放 Issues,或尚未同步最近议题。