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

react-intersection-observer

Package Overview
Dependencies
Maintainers
1
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-intersection-observer - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

10

index.d.ts
declare module 'react-intersection-observer' {
import * as React from 'react';
import React = require('react');
export type IntersectionObserverProps = {
export interface IntersectionObserverProps {
/** Children should be either a function or a node */
children: JSX.Element | null | ((inView: boolean) => JSX.Element | null);
children?: React.ReactNode | ((inView: boolean) => React.ReactNode);

@@ -50,6 +50,6 @@ /**

/** Call this function whenever the in view state changes */
onChange?(inView: boolean): void;
onChange?(inView: boolean|React.FormEvent<HTMLElement>): void;
/** Use `render` method to only render content when inView */
render?(): JSX.Element | null;
render?(): React.ReactNode;
};

@@ -56,0 +56,0 @@

{
"name": "react-intersection-observer",
"version": "2.0.1",
"version": "2.0.2",
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API",

@@ -85,3 +85,3 @@ "main": "lib/index.js",

"jest": "^21.2.1",
"lint-staged": "^4.3.0",
"lint-staged": "^5.0.0",
"prettier": "^1.8.1",

@@ -88,0 +88,0 @@ "react": "^16.0.0",

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