@gluestack-ui/nativewind
v0.0.2
Published
A universal themed components for React Native, Next.js & React with nativewind style engine.
Downloads
81
Readme
@gluestack-ui/nativewind
Installation
To use gluestack-ui components with nativewind, all you need to do is install the
@gluestack-ui/nativewind
package:
$ yarn add @gluestack-ui/nativewind [email protected]
# or
$ npm i @gluestack-ui/nativewind [email protected]
Usage
A button component is a graphical user interface element that enables users to act by clicking or tapping. It can be customized in size, shape, color, and behavior to fit the design of the application or website. Here's an example:
import { Button } from '@gluestack-ui/nativewind';
export default function App () {
return (
<Button className="px-2 py-4 bg-blue-500" >
<ButtonText className="text-white">
Hello world!
</ButtonText>
<Button>
)
}
More guides on how to get started are available here.