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.0.0-beta.11 to 4.0.0-beta.12

3

lib/RootSiblingsManager.d.ts

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

import React from 'react';
import { ReactNode } from 'react';

@@ -11,5 +12,5 @@ export declare function setSiblingWrapper(wrapper: (sibling: ReactNode) => ReactNode): void;

children: ReactNode;
}): JSX.Element;
}): React.FunctionComponent<{}>;
export declare function RootSiblingPortal(props: {
children: ReactNode;
}): null;

@@ -45,10 +45,10 @@ import React from 'react';

if (!SiblingParent) {
const { Root: Parent, manager: parentManager } = wrapRootComponent(ChildrenWrapper, renderSibling);
const { Root: Parent, manager: parentManager } = wrapRootComponent(() => <ChildrenWrapper>{props.children}</ChildrenWrapper>, renderSibling);
currentManager = parentManager;
managerStack.push(parentManager);
setSiblingParent(Parent);
return <Parent>{props.children}</Parent>;
return Parent;
}
else {
return <SiblingParent>{props.children}</SiblingParent>;
return SiblingParent;
}

@@ -55,0 +55,0 @@ }

{
"version": "4.0.0-beta.11",
"version": "4.0.0-beta.12",
"name": "react-native-root-siblings",

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

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