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

react-native-root-siblings

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-root-siblings - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

8

lib/RootSiblings.d.ts

@@ -15,8 +15,9 @@ import { Component, ReactChild, ReactNode } from 'react';

export default class extends Component<RootSiblingsProps, RootSiblingsState> {
private updatedSiblings;
private siblingsPool;
constructor(props: RootSiblingsProps);
componentDidMount(): void;
componentDidUpdate(): void;
render(): JSX.Element;
componentWillUnmount(): void;
private siblingsPool;
private updatedSiblings;
private unmounted;
private commitChange;

@@ -26,3 +27,4 @@ private invokeCallback;

private wrapSibling;
render(): JSX.Element;
}
export {};

@@ -7,4 +7,5 @@ import React, { Component } from 'react';

super(props);
this.siblingsPool = [];
this.updatedSiblings = new Set();
this.siblingsPool = [];
this.unmounted = false;
this.state = {

@@ -22,9 +23,9 @@ siblings: []

}
render() {
return (<>
{this.props.children}
{this.renderSiblings()}
</>);
componentWillUnmount() {
this.unmounted = true;
}
commitChange(id, { change, element, updateCallback }) {
if (this.unmounted) {
return;
}
const siblings = Array.from(this.siblingsPool);

@@ -90,3 +91,9 @@ const index = siblings.findIndex(sibling => sibling.id === id);

}
render() {
return (<>
{this.props.children}
{this.renderSiblings()}
</>);
}
}
//# sourceMappingURL=RootSiblings.js.map
{
"version": "4.1.0",
"version": "4.1.1",
"name": "react-native-root-siblings",

@@ -4,0 +4,0 @@ "repository": {

@@ -112,3 +112,2 @@ ## react-native-root-siblings [![npm version](https://badge.fury.io/js/react-native-root-siblings.svg)](http://badge.fury.io/js/react-native-root-siblings)

```js
'use strict';
import React, {

@@ -115,0 +114,0 @@ AppRegistry,

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