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
1
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 1.0.1 to 1.0.2

7

lib/RootSiblings.js

@@ -5,4 +5,3 @@ import React, {

View,
AppRegistry,
StaticContainer
AppRegistry
} from 'react-native';

@@ -62,5 +61,5 @@

return <View style={styles.container}>
<StaticContainer shouldUpdate={false}>
<SiblingContainer root={true}>
<Origin {...this.props} />
</StaticContainer>
</SiblingContainer>
{this.getSiblings()}

@@ -67,0 +66,0 @@ </View>;

@@ -5,6 +5,7 @@ import React, {

View,
cloneElement
cloneElement,
Children
} from 'react-native';
import onlyChild from 'onlyChild';
let onlyChild = Children.onlyChild;

@@ -27,5 +28,7 @@ let styles = StyleSheet.create({

render() {
return cloneElement(onlyChild(this.props.children), {
style: [this.props.children.props.style, styles.offStream]
});
return this.props.root ?
this.props.children :
cloneElement(onlyChild(this.props.children), {
style: [this.props.children.props.style, styles.offStream]
});
}

@@ -32,0 +35,0 @@ }

{
"version": "1.0.2",
"name": "react-native-root-siblings",

@@ -7,7 +8,7 @@ "repository": {

},
"version": "1.0.1",
"main": "./index.js",
"description": "react native root sibling elements manager",
"dependencies": {
"jquery-callbacks": "^0.0.1"
"jquery-callbacks": "^0.0.1",
"lodash": "^3.10.0"
},

@@ -14,0 +15,0 @@ "keywords": [

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