
Security News
TC39 Advances Temporal to Stage 4 Alongside Several ECMAScript Proposals
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.
@blazejkustra/react-native-alert
Advanced tools

✨ Universal, customizable alerts and prompts for React Native — identical API to the built-in Alert, but works seamlessly across iOS, Android, and Web.
Alert<dialog> + CSS custom propertiesnpm install @blazejkustra/react-native-alert
No extra setup needed on iOS or Android (just rebuild your app). On Web, styles are injected automatically and can be customized with CSS variables.
import Alert from '@blazejkustra/react-native-alert';
Alert.alert('Hello!', 'This is a cross-platform alert.');
Alert.alert(
'Confirm',
'Do you want to continue?',
[
{ text: 'Cancel', style: 'cancel' },
{ text: 'OK', style: 'default' },
]
);
Alert.alert(
'Delete item?',
'This action cannot be undone.',
[
{ text: 'Cancel', style: 'cancel' },
{ text: 'Delete', style: 'destructive' },
]
);
Alert.prompt(
'Enter your name',
'Please type your name below:',
[
{ text: 'Cancel', style: 'cancel' },
{ text: 'OK', onPress: (value) => console.log('Name:', value) },
],
'plain-text',
'John Doe'
);
Alert.prompt(
'Password',
'Enter your password:',
[
{ text: 'Cancel', style: 'cancel' },
{ text: 'OK', onPress: () => console.log('Password entered') },
],
'secure-text'
);
For more examples, see example/src/App.tsx.
Same as React Native Alert.
Alert.alert and Alert.promptAlert.alert and custom native module with Material styling for Alert.prompt<dialog>, themeable via CSS variablesOverride CSS variables to match your design system:
:root {
--rn-alert-accent: #059669; /* Primary button */
--rn-alert-danger: #dc2626; /* Destructive button */
--rn-alert-bg: #fefefe; /* Dialog background */
--rn-alert-fg: #111827; /* Text color */
--rn-alert-radius: 16px; /* Border radius */
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) {
...
}
}
Available variables:
--rn-alert-bg – dialog background--rn-alert-fg – primary text color--rn-alert-muted – secondary / muted text--rn-alert-surface – input & surface background--rn-alert-border – border color--rn-alert-elev – box shadow / elevation--rn-alert-accent – primary button color--rn-alert-accent-hover – primary button hover color--rn-alert-danger – destructive button color--rn-alert-danger-hover – destructive button hover color--rn-alert-radius – border radius (dialogs/buttons)--rn-alert-radius-sm – small border radius (inputs/buttons)--rn-alert-spacing – default padding--rn-alert-spacing-sm – small padding--rn-alert-btn-min – minimum button height (touch target)--rn-alert-outline – focus outline style--rn-alert-outline-weak – subtle focus outline--rn-alert-font – font family--rn-alert-font-size – base font size--rn-alert-title-size – title font sizeWe welcome contributions! See CONTRIBUTING.md for workflow and CODE_OF_CONDUCT.md.
MIT © Blazej Kustra
Built with create-react-native-library 🛠
FAQs
Universal alerts for react native
The npm package @blazejkustra/react-native-alert receives a total of 194,271 weekly downloads. As such, @blazejkustra/react-native-alert popularity was classified as popular.
We found that @blazejkustra/react-native-alert demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.

Research
/Security News
Since January 31, 2026, we identified at least 72 additional malicious Open VSX extensions, including transitive GlassWorm loader extensions targeting developers.

Research
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.