@gluestack-ui/themed
Installation
To use gluestack-ui components, all you need to do is install the
@gluestack-ui/themed
package:
$ yarn add @gluestack-ui/themed @gluestack-style/react react-native-svg@13.4.0
$ npm i @gluestack-ui/themed @gluestack-style/react react-native-svg@13.4.0
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, GluestackUIProvider } from '@gluestack-ui/themed';
import { config } from '@gluestack-ui/config';
export default function App () {
return (
<GluestackUIProvider config={config}>
<Button>
<ButtonText>
Hello world!
</ButtonText>
<Button>
</GluestackUIProvider>
)
}
More guides on how to get started are available
here.