
Security News
Socket Integrates With Bun 1.3’s Security Scanner API
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
@equinor/mad-toast
Advanced tools
Mad Toast is a wrapper around react-native-toast-message
that adds EDS styling to the toasts, and
a queueing system for toasts.
npm install @equinor/mad-toast
Add ToastEmitter component to your app. It should be the last child in your View hierarchy in order to prevent other components from rendering above it:
import { ToastEmitter } from "@equinor/mad-toast";
export function App(props) {
return (
<>
{/* ... */}
<ToastEmitter />
</>
);
}
Then use addToast
anywhere in your app
// Foo.jsx
import { addToast } from "@equinor/mad-toast";
import { Button } from "react-native";
export function Foo(props) {
const showToast = () => {
addToast({
type: "SUCCESS",
text: "Hello",
});
};
return <Button title="Show toast" onPress={showToast} />;
}
For more detailed information about how to use the package, head to our documentation page
FAQs
Toast package built on top of `react-native-toast-message`
We found that @equinor/mad-toast demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.