A React Native library for managing and displaying modal alerts with a queuing system. v2.3.0 requires react-native-reanimated 3.x as a peer dependency. Supports async/await patterns, customizable UI with slots, SVG icons, confetti, and real-time alert updates. Queues multiple alerts sequentially and provides built-in helpers for success, error, and confirm dialogs. Ships TypeScript types. Alternatives: react-native-alert, react-native-modalbox.
npm install react-native-alert-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic setup with AlertContainer wrapper and async/await confirm dialog pattern.
Install react-native-reanimated@>=3.0.0 and follow its installation guide (add babel plugin, wrap app with Reanimated's GestureHandlerRootView if needed).
Use dependency injection or wrap tests with AlertProvider if needed. For unit tests, you may mock the module.
Change `import AlertQueue from 'react-native-alert-queue'` to `import { AlertContainer, alert } from 'react-native-alert-queue'`.Wrap AlertContainer in a View with style={{ flex: 1 }} or ensure parent has definite size.Use a polyfill like 'canvas-confetti' or add a check before calling confetti methods.
Ignore this warning as it's harmless; future versions may use useSyncExternalStore.
Install react-native-reanimated@>=3.0.0, add 'react-native-reanimated/plugin' to babel.config.js, and rebuild app.
Use named import: `import { alert } from 'react-native-alert-queue'`.Run `npm install` or `yarn install` and ensure the package is in node_modules. If using Expo, check if compatible.