1.0.14 • Published 3 years ago

rn-tailwind-ui v1.0.14

Weekly downloads
15
License
ISC
Repository
-
Last release
3 years ago

rn-tailwind-ui

Use Tailwind CSS in React Native and React Native Web projects

Install

$ npm install rn-tailwind-ui

Usage

Import TailwindUIProvider from the rn-tailwind-ui module, which is rendered at the top of our component tree.

import React from 'react'
import App from './components/App'

const Index = () => (
  <TailwindUIProvider>
    <App />
  </TailwindUIProvider>,
)

Than import rn-tailwind-ui module and use any of the supported utilities from Tailwind CSS in your React Native views.

import { View, Text } from "rn-tailwind-ui";

const App = () => (
  <View className="h-full xl:h-1/2">
    <View className="pt-12 xl:pt-4 items-center">
      <View className="bg-blue-200 px-3 py-1 rounded-full">
        <Text className="text-blue-800 font-semibold">Gang Gang </Text>
      </View>
    </View>
  </View>
);

Supported Utilities

Layout

Flexbox

Spacing

Sizing

Typography

Backgrounds

Borders

Effects

Responsive

1.0.14

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago