0.2.3 • Published 7 months ago

@react-native-library/overlay v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@react-native-library/overlay

Installation

npm install @react-native-library/overlay

Usage

Toast

import { Toast } from '@react-native-library/overlay';

Toast.show({
  title: "xxx";
  message: "xxx";
  /**
   * 'done' | 'error'
   */
  preset: 'done';
  /**
   * 'success' | 'warning' | 'error' | 'none';
   */
  haptic: 'success';
})

Alert

import { Alert } from '@react-native-library/overlay';

Alert.show({
  title: "xxx";
  message: "xxx";
  /**
   * 'done' | 'error' | 'spinner'
   */
  preset: 'done';
  /**
   * 'success' | 'warning' | 'error' | 'none';
   */
  haptic: 'success';
  /**
   * Optional, duration in seconds
   */
  duration: 2;
})

Alert.dismissAll();

Confetti

import { Confetti } from '@react-native-library/overlay';

Confetti.show({
  /**
   * Optional, duration in seconds
   */
  duration: 2;
})

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

0.2.3

7 months ago

0.2.2

7 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago