react-native-root-siblings
Advanced tools
Comparing version 3.1.6 to 3.1.7
declare class RootSiblings { | ||
constructor(el: JSX.Element, callback?: Function, store?: Object); | ||
constructor(el: JSX.Element, callback?: () => void, store?: object); | ||
update(el: JSX.Element, callback?: Function, store?: Object): void; | ||
update(el: JSX.Element, callback?: () => void, store?: object): void; | ||
destroy(callback?: Function): void; | ||
destroy(callback?: () => void): void; | ||
} | ||
export = RootSiblings; |
import React, { Component } from 'react'; | ||
import { StyleSheet, View, AppRegistry } from 'react-native'; | ||
import StaticContainer from 'static-container'; | ||
import PropTypes from 'prop-types'; | ||
@@ -12,2 +13,10 @@ const styles = StyleSheet.create({ | ||
class Provider extends Component { | ||
static childContextTypes = { | ||
store: PropTypes.shape({ | ||
subscribe: PropTypes.func.isRequired, | ||
dispatch: PropTypes.func.isRequired, | ||
getState: PropTypes.func.isRequired, | ||
}), | ||
}; | ||
getChildContext() { | ||
@@ -14,0 +23,0 @@ return { store: this.props.store }; |
{ | ||
"version": "3.1.6", | ||
"version": "3.1.7", | ||
"name": "react-native-root-siblings", | ||
@@ -11,2 +11,3 @@ "repository": { | ||
"dependencies": { | ||
"prop-types": "^15.6.2", | ||
"static-container": "^1.0.0" | ||
@@ -13,0 +14,0 @@ }, |
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
10899
8
115
2
+ Addedprop-types@^15.6.2
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact-is@16.13.1(transitive)