@react-native-library/overlay
v1.1.0
Published
Toasts for React Native iOS
Downloads
11
Readme
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