@chengsokdara/react-native-cosmotize
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

react-native-cosmotize

React Native direct prop styling, inspired by Tailwindcss.

Installation

yarn add @chengsokdara/react-native-cosmotize

npm install @chengsokdara/react-native-cosmotize

Usage

import { View } from '@chengsokdara/react-native-cosmotize';
import Box from '@chengsokdara/react-native-cosmotize';

export default function App() {
  return (
    <View flex-1 items-center justify-center bg-black>
      <Box bg-white width-100 height-100 />
    </View>
  );
}

API

Layout and View Style props are implemented.
React Native Layout Props
React Native View Style Props

Please refer to Tailwindcss documentation for available prop name.
Tailwindcss Docs

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i @chengsokdara/react-native-cosmotize

Weekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

282 kB

Total Files

27

Last publish

Collaborators

  • chengsokdara