Package Exports
- @gluestack-ui/config
- @gluestack-ui/config/build/gluestack-ui.config.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gluestack-ui/config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@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
# or
$ 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 how to use this package to create one:
import { createButton } from '@gluestack-ui/themed';
import {
Root,
Text,
Group,
GroupHSpacer,
GroupVSpacer,
Spinner,
Icon,
} from '@gluestack-ui/themed';
export const Button = createButton({
Root,
Text,
Group,
GroupHSpacer,
GroupVSpacer,
Spinner,
Icon,
});
More guides on how to get started are available here.