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.0.0 to 2.1.0

lib/commonjs/hook/context.js

29

package.json
{
"name": "react-native-fast-toast",
"version": "2.0.0",
"main": "index.ts",
"version": "2.1.0",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"types": "lib/typescript/src/index.d.ts",
"files": [
"src",
"lib"
],
"license": "MIT",

@@ -10,6 +16,23 @@ "author": {

},
"homepage": "https://github.com/arnnis/react-native-fast-toast#readme",
"devDependencies": {
"@react-native-community/bob": "^0.16.2",
"@types/react": "^16.9.49",
"@types/react-native": "^0.63.15"
"@types/react-native": "^0.63.15",
"typescript": "^4.0.3"
},
"@react-native-community/bob": {
"source": "src",
"output": "lib",
"targets": [
[
"commonjs",
{
"copyFlow": true
}
],
"module",
"typescript"
]
}
}

4

src/hook/context.ts
import React from "react";
type Toast = React.RefObject<
import("react-native-fast-toast").default
>["current"];
type Toast = React.RefObject<import("../toast-container").default>["current"];

@@ -7,0 +5,0 @@ const ToastContext = React.createContext(null as Toast);

@@ -1,2 +0,2 @@

import React, { useContext } from "react";
import { useContext } from "react";
import ToastContext from "./context";

@@ -3,0 +3,0 @@

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