npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-native-toastier

v2.0.5

Published

React Native Toast message library for Android and iOS with animated and customizable toast notifications.

Readme

React Native Toast Message Library – Toastier

Toastier is a React Native Toast message library for Android and iOS that lets you show toast notifications in React Native apps with full customization, animations, and theme support.

NPM Version NPM Downloads MIT License


Why React Native Toastier?

  • Lightweight React Native Toast library
  • Works on both Android & iOS
  • Supports success, error, info, and warning toast messages
  • Fully customizable UI and animations
  • Can be used as a React Native toast message or snackbar alternative
  • Simple API with global ToastService

Demo


Installation

Install the package using npm or yarn:

npm install react-native-toastier
# or
yarn add react-native-toastier

React Native Toast Usage

Wrap your app with ToastProvider to enable toast notifications globally.

import { ToastProvider } from 'react-native-toastier';

export default function App() {
  return (
    <ToastProvider>
      <YourApp />
    </ToastProvider>
  );
}

Use ToastService to show toast messages from anywhere in your app.

import { ToastService } from 'react-native-toastier';
import { useEffect } from 'react';

export default function Component() {
  useEffect(() => {
    ToastService.show({
      message: 'Hello Toast',
    });
  }, []);
}

Toast Message Types

Success Toast

ToastService.show({ message: 'Success message' });

Error Toast

ToastService.showError({ message: 'Error message' });

Info Toast

ToastService.showInfo({ message: 'Info message' });

Warning Toast

ToastService.showWarning({ message: 'Warning message' });

Custom Toast

Create fully custom toast notifications using your own components.

ToastService.show({
  message: 'Hello',
  children: <Custom />,
  textStyle: { color: '#000' },
  contentContainerStyle: {
    borderStartWidth: 5,
    backgroundColor: '#fff',
    paddingLeft: 12,
    flex: 1,
    borderStartColor: '#4CAF50',
  },
});

ToastProvider Props

Props passed to ToastProvider apply to all toast messages globally.

| Prop | Type | Default | Description | |------|------|---------|-------------| | children | ReactNode | required | App content wrapped by provider | | theme | Theme | - | Customize default toast theme | | animation | string | zoomIn | Animation type for toast | | position | string | top | Toast position (top / bottom) | | duration | number | 15000 | Toast display duration (ms) | | contentContainerStyle | ViewStyle | - | Outer container style | | textContainerStyle | ViewStyle | - | Message container style | | textStyle | TextStyle | - | Toast text style |


ToastService Options

Props passed to ToastService apply to individual toast messages.

| Prop | Type | Default | Description | |------|------|---------|-------------| | message | string | - | Message text | | children | ReactNode | - | Custom toast content | | left | ReactNode | - | Left component | | right | ReactNode | - | Right component | | theme | Theme | - | Custom theme | | animation | string | zoomIn | Animation override | | position | string | top | Toast position | | duration | number | 15000 | Duration override | | contentContainerStyle | ViewStyle | - | Outer style | | textContainerStyle | ViewStyle | - | Message style | | textStyle | TextStyle | - | Text style |


Donation

If you find this React Native Toast library useful, consider supporting the project.


Hire

I’m a professional React & React Native developer available for freelance and contract work.

Contact me: [email protected]


License

MIT