react-native-root-siblings
Advanced tools
Comparing version 1.1.3 to 1.2.0
import { StyleSheet, View, AppRegistry } from 'react-native'; | ||
import React, { Component } from 'react'; | ||
import StaticContainer from 'react-native/Libraries/Components/StaticContainer'; | ||
import StaticContainer from 'static-container'; | ||
import EventEmitter from 'react-native/Libraries/EventEmitter/EventEmitter'; | ||
@@ -5,0 +5,0 @@ |
@@ -24,3 +24,3 @@ import React, { cloneElement } from 'react'; | ||
_offstreamElement(element) { | ||
_offStreamElement(element) { | ||
return cloneElement(element, { | ||
@@ -34,3 +34,3 @@ style: [element.props.style, styles.offStream] | ||
update(element, callback) { | ||
emitter.emit('siblings.update', this._id, this._offstreamElement(element), callback); | ||
emitter.emit('siblings.update', this._id, this._offStreamElement(element), callback); | ||
}; | ||
@@ -37,0 +37,0 @@ |
{ | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"name": "react-native-root-siblings", | ||
@@ -11,2 +11,5 @@ "repository": { | ||
"description": "react native root sibling elements manager", | ||
"dependencies": { | ||
"static-container": "^1.0.0" | ||
}, | ||
"keywords": [ | ||
@@ -13,0 +16,0 @@ "react-component", |
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
51821
1
+ Addedstatic-container@^1.0.0
+ Addedstatic-container@1.7.1(transitive)