Socket
Socket
Sign inDemoInstall

react-native-fast-toast

Package Overview
Dependencies
0
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.0 to 2.3.0

7

lib/commonjs/toast.js

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

warningColor,
normalColor,
placement,

@@ -102,3 +103,3 @@ onPress

};
let backgroundColor = "#333";
let backgroundColor = "";

@@ -116,2 +117,6 @@ switch (type) {

backgroundColor = warningColor || "#ffbb33";
break;
default:
backgroundColor = normalColor || "#333";
}

@@ -118,0 +123,0 @@

@@ -19,2 +19,3 @@ import React, { useRef, useEffect, useState } from "react";

warningColor,
normalColor,
placement,

@@ -89,3 +90,3 @@ onPress

};
let backgroundColor = "#333";
let backgroundColor = "";

@@ -103,2 +104,6 @@ switch (type) {

backgroundColor = warningColor || "#ffbb33";
break;
default:
backgroundColor = normalColor || "#333";
}

@@ -105,0 +110,0 @@

import React from "react";
declare const ToastContext: React.Context<import("../toast-container").default | null>;
export default ToastContext;

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

declare const useToast: () => import("../toast-container").default | null;
export default useToast;
export { default } from "./toast-container";
export { default as ToastProvider } from "./hook/provider";
export { default as useToast } from "./hook/useToast";

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

@@ -16,2 +16,3 @@ import { FC } from "react";

warningColor?: string;
normalColor?: string;
onPress?(id: string): void;

@@ -18,0 +19,0 @@ }

4

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

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

"@types/react": "^16.9.49",
"@types/react-native": "^0.63.37",
"@types/react-native": "^0.63.52",
"typescript": "^4.0.3"

@@ -24,0 +24,0 @@ },

# react-native-fast-toast
[![Version][version-badge]][package]
[![MIT License][license-badge]][license]
A Toast component for react-native, supports Android, IOS, Web, Windows

@@ -63,3 +66,3 @@

Check [index.d.ts](/example/index.d.ts) in example app for typescript.
TypeScript Note: add [index.d.ts](/example/index.d.ts) to your project root.

@@ -159,1 +162,6 @@ ## Hook Example

MIT
[version-badge]: https://img.shields.io/npm/v/react-native-fast-toast.svg?style=flat-square
[package]: https://www.npmjs.com/package/react-native-fast-toast
[license-badge]: https://img.shields.io/static/v1?label=License&message=MIT&color=success&style=flat-square
[license]: https://github.com/arnnis/react-native-fast-toast/blob/master/LICENSE

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc