New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-toast-message

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-toast-message

Toast message component for React Native

  • 2.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
172K
decreased by-3.88%
Maintainers
1
Weekly downloads
 
Created

What is react-native-toast-message?

react-native-toast-message is a customizable toast notification library for React Native applications. It allows developers to display brief messages to users in a non-intrusive way, providing feedback or alerts without disrupting the user experience.

What are react-native-toast-message's main functionalities?

Basic Toast

Displays a basic toast message with a title and a subtitle. The type can be 'success', 'error', or 'info'.

import Toast from 'react-native-toast-message';

Toast.show({
  type: 'success',
  text1: 'Hello',
  text2: 'This is a basic toast message'
});

Custom Toast

Displays a custom toast message with additional properties. This allows for more complex and tailored notifications.

import Toast from 'react-native-toast-message';

Toast.show({
  type: 'custom',
  text1: 'Custom Toast',
  text2: 'This is a custom toast message',
  props: { customData: 'Some custom data' }
});

Positioning Toast

Allows positioning of the toast message. The position can be 'top', 'bottom', or 'center'.

import Toast from 'react-native-toast-message';

Toast.show({
  type: 'info',
  text1: 'Positioned Toast',
  text2: 'This toast is positioned at the bottom',
  position: 'bottom'
});

Auto Hide

Displays a toast message that automatically hides after a specified duration. The visibilityTime is set in milliseconds.

import Toast from 'react-native-toast-message';

Toast.show({
  type: 'error',
  text1: 'Auto Hide Toast',
  text2: 'This toast will disappear after 3 seconds',
  autoHide: true,
  visibilityTime: 3000
});

Other packages similar to react-native-toast-message

Keywords

FAQs

Package last updated on 19 Sep 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc