手机端如何使用?
import tw from 'twrnc';
<View style={tw`bg-red-500 h-50`}></View>
如何设置宽高?
class | properties |
---|---|
w-full | width: 100%; |
w-screen | width: 100vw; |
如何设置间距?
无法设置,需要rem
如何使用flex布局?
class | properties |
---|---|
flex | display: flex; |
flex-row | flex-direction: row; |
flex-col | flex-direction: column; |
justify-center | justify-content: center; |
items-center | align-items: center; |
flex-1 | flex: 1 1 0%; |
justify-between | justify-content: space-between; |
justify-around | justify-content: space-around; |
边框如何处理?
无法处理