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 5.0.0 to 5.0.1

4

lib/ChildrenWrapper.d.ts

@@ -1,4 +0,4 @@

import React, { ReactNode } from 'react';
import { ReactNode } from 'react';
export default function ChildrenWrapper(props: {
children?: ReactNode;
}): React.JSX.Element;
}): import("react/jsx-runtime").JSX.Element;

@@ -1,5 +0,5 @@

import React from 'react';
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
export default function ChildrenWrapper(props) {
return <>{props.children}</>;
return _jsx(_Fragment, { children: props.children });
}
//# sourceMappingURL=ChildrenWrapper.js.map

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

import React, { Component, ReactNode } from 'react';
import { Component, ReactNode } from 'react';
import RootController from './RootController';

@@ -20,3 +20,3 @@ interface RootSiblingsProps {

componentDidUpdate(): void;
render(): React.JSX.Element;
render(): import("react/jsx-runtime").JSX.Element;
private commitChange;

@@ -23,0 +23,0 @@ private invokeCallback;

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

import React, { Component } from 'react';
import { Fragment as _Fragment, jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
import { Component } from 'react';
import StaticContainer from './StaticContainer';

@@ -22,6 +23,3 @@ import { RootControllerChanges } from './RootController';

render() {
return (<>
{this.props.children}
{this.renderSiblings()}
</>);
return (_jsxs(_Fragment, { children: [this.props.children, this.renderSiblings()] }));
}

@@ -75,5 +73,3 @@ commitChange(id, { change, element, updateCallback }) {

return this.state.siblings.map(({ id, element }) => {
return (<StaticContainer key={`root-sibling-${id}`} shouldUpdate={this.updatedSiblings.has(id)}>
{this.wrapSibling(element)}
</StaticContainer>);
return (_jsx(StaticContainer, { shouldUpdate: this.updatedSiblings.has(id), children: this.wrapSibling(element) }, `root-sibling-${id}`));
});

@@ -80,0 +76,0 @@ }

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

import React, { ReactNode } from 'react';
import { ReactNode } from 'react';
export declare function setSiblingWrapper(wrapper: (sibling: ReactNode) => ReactNode): void;

@@ -13,5 +13,5 @@ export default class RootSiblingsManager {

inactive?: boolean;
}): React.JSX.Element;
}): import("react/jsx-runtime").JSX.Element;
export declare function RootSiblingPortal(props: {
children: ReactNode;
}): null;

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

import React, { useEffect, useState } from 'react';
import { jsx as _jsx } from "react/jsx-runtime";
import { useEffect, useState } from 'react';
import ChildrenWrapper from './ChildrenWrapper';

@@ -68,3 +69,3 @@ import wrapRootComponent from './wrapRootComponent';

const Parent = sibling.Root;
return <Parent>{props.children}</Parent>;
return _jsx(Parent, { children: props.children });
}

@@ -71,0 +72,0 @@ export function RootSiblingPortal(props) {

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

import React from 'react';
import { jsx as _jsx } from "react/jsx-runtime";
import RootController from './RootController';

@@ -8,5 +8,3 @@ import RootSiblings from './RootSiblings';

Root: (props) => {
return (<RootSiblings controller={controller} renderSibling={renderSibling}>
<Root {...props}/>
</RootSiblings>);
return (_jsx(RootSiblings, { controller: controller, renderSibling: renderSibling, children: _jsx(Root, Object.assign({}, props)) }));
},

@@ -13,0 +11,0 @@ manager: {

{
"version": "5.0.0",
"version": "5.0.1",
"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

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