1.1.0 • Published 1 year ago

@react-native-library/overlay v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-native-overlay

Installation

npm install @react-native-library/overlay

Usage

Toast

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

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

Alert

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

Alert.show({
  title: "Hello";
  message: "World";
  /**
   * 'done' | 'error' | 'spinner'
   */
  icon: 'done';
  /**
   * 'success' | 'warning' | 'error' | 'none';
   */
  haptic: 'success';
  /**
   * Optional, duration in milliseconds
   */
  duration: 2000;
})

Alert.dismissAll();

Confetti

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

Confetti.show({
  /**
   * Optional, duration in milliseconds
   */
  duration: 2000;
})

Contributing

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

License

MIT

1.1.0

1 year ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago