0.1.2 • Published 3 years ago
@garments/react-native v0.1.2
Garments
Garments is a tiny CSS-in-JS library around React Native style prop that provides styled-components-like API. It includes features from different common CSS-in-JS libraries to simplify styling:
styledAPI- basic support of variants
- static theming
- props interpolation
Installation
Using yarn:
yarn add @garments/react-nativeUsing npm:
npm install @garments/react-nativeUsage Example
import { styled } from '@garments/react-native';
import { View } from 'react-native';
const Container = styled(View)({
flex: 1,
})