
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-action-toast
Advanced tools
A premium, customizable toast notification system for React Native with action buttons, beautiful animations, and Expo compatibility
An elegant toast notification library for React Native featuring interactive action buttons, smooth animations, and seamless Expo integration
top or bottomsuccess, error, etc.(Click the badge above to watch the demo video)
npm install react-native-action-toast
or
yarn add react-native-action-toast
or
npx expo install react-native-action-toast
import { ToastManager, initializeToast } from 'react-native-action-toast';
export default function App() {
const toastRef = initializeToast(); // intialze ref
return (
<>
{/* Your app content */}
<ToastManager ref={toastRef} /> // Add ToastManger and pass the toastRef
</>
);
}
import { getToastManager } from 'react-native-action-toast';
// Toast with action buttons
getToastManager().showToast({
title: "New Message",
message: "You have 3 unread conversations",
position: "top",
actionButtons: [
{
text: "View",
onPress: () => console.log("View pressed"),
backgroundColor: "#4CAF50"
}
]
});
// Quick methods
//Success
getToastManager().showSuccess(
"Changes will take around 1-2 hours to reflect across all devices.", //messgae
"Profile Saved", //title
"bottom" //position
)
// Error
getToastManager().showError(
"Failed to save changes",
undefined, //each quick methods have default titles.
"top"
)
//Similar showInfo and showWarning methods
//Quick custom toast
getToastManager().showCustom(
"Custom settings have been applied", //message
"Custom Style", //title
"bottom", //postiton
"palette", //icon name
undefined, //backgroundColor
["#9c27b0", "#673ab7"] //gradinet colors
)
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | - | Toast title |
message | string | - | Toast message |
position | 'top' or 'bottom' | 'bottom' | Toast position |
duration | number | 4000 | Display duration in ms |
icon | string or ReactNode | - | Icon name or custom component |
gradientColors | string[] | - | Gradient background colors |
backgroundColor | string | - | Solid background color (alternative) |
actionButtons | ActionButton[] | - | Array of action buttons |
| Prop | Type | Description |
|---|---|---|
text | string | Button label |
onPress | function | Click handler |
backgroundColor | string | Button background |
textStyle | TextStyle | Optional text styles |
icon | ReactNode | Optional custom icon |
iconPosition | 'left' or 'right' | Icon position |
// Custom toast with two buttons
getToastManager().showToast({
title: "New Feature Available",
message: "Try our new dark mode!",
position: "top",
icon: "star",
gradientColors: ["#6a11cb", "#2575fc"],
actionButtons: [
{
text: "Enable",
onPress: enableDarkMode,
backgroundColor: "#2575fc"
},
{
text: "Later",
onPress: () => {},
backgroundColor: "rgba(255,255,255,0.2)"
}
]
});
FAQs
A premium, customizable toast notification system for React Native with action buttons, beautiful animations, and Expo compatibility
We found that react-native-action-toast 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.