Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-fast-toast

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-fast-toast - npm Package Compare versions

Comparing version 2.1.3 to 2.2.0

2

lib/commonjs/toast-container.js

@@ -31,3 +31,3 @@ "use strict";

_defineProperty(this, "show", (message, toastOptions) => {
let id = Math.random().toString();
let id = (toastOptions === null || toastOptions === void 0 ? void 0 : toastOptions.id) || Math.random().toString();

@@ -34,0 +34,0 @@ const onClose = () => this.hide(id);

@@ -15,3 +15,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

_defineProperty(this, "show", (message, toastOptions) => {
let id = Math.random().toString();
let id = (toastOptions === null || toastOptions === void 0 ? void 0 : toastOptions.id) || Math.random().toString();

@@ -18,0 +18,0 @@ const onClose = () => this.hide(id);

import { FC } from "react";
import { StyleProp, ViewStyle, TextStyle } from "react-native";
export interface ToastOptions {
id?: string;
icon?: JSX.Element;

@@ -5,0 +6,0 @@ type?: "normal" | "success" | "danger" | "warning";

{
"name": "react-native-fast-toast",
"version": "2.1.3",
"version": "2.2.0",
"main": "lib/commonjs/index.js",

@@ -21,6 +21,5 @@ "module": "lib/module/index.js",

"@types/react": "^16.9.49",
"@types/react-native": "^0.63.15",
"@types/react-native": "^0.63.37",
"typescript": "^4.0.3"
},
"scripts": {

@@ -27,0 +26,0 @@ "prepare": "bob build"

@@ -0,0 +0,0 @@ # react-native-fast-toast

@@ -0,0 +0,0 @@ import React from "react";

@@ -0,0 +0,0 @@ import { useContext } from "react";

export { default } from "./toast-container";
export { default as ToastProvider } from "./hook/provider";
export { default as useToast } from "./hook/useToast";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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