npm install @react-native-library/overlay
import { Toast } from '@react-native-library/overlay';
Toast.show({
title: "xxx";
message: "xxx";
/**
* 'done' | 'error'
*/
preset: 'done';
/**
* 'success' | 'warning' | 'error' | 'none';
*/
haptic: 'success';
})
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();
import { Confetti } from '@react-native-library/overlay';
Confetti.show({
/**
* Optional, duration in seconds
*/
duration: 2;
})
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT