JSPM

@gluestack-ui-nightly/utils

1.0.23
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 179
  • Score
    100M100P100Q77367F

Utility functions and hooks for gluestack-ui

Package Exports

  • @gluestack-ui-nightly/utils
  • @gluestack-ui-nightly/utils/lib/esm/index.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-nightly/utils) 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-nightly/utils

A collection of utility functions and hooks for gluestack-ui components.

Installation

npm install @gluestack-ui-nightly/utils
# or
yarn add @gluestack-ui-nightly/utils

Features

  • Common utility functions for React and React Native
  • Custom React hooks
  • NativeWind utilities
  • ARIA accessibility helpers

Usage

import { useControllableState, useKeyboardDismissable } from '@gluestack-ui-nightly/utils/hooks';
import { mergeRefs, stableHash } from '@gluestack-ui-nightly/utils/common';

// Use hooks
const [value, setValue] = useControllableState({
  defaultValue: 'initial',
});

// Use utility functions
const combinedRef = mergeRefs(ref1, ref2);

License

MIT