react-native-root-siblings
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
28284
342