react-native-root-siblings
Advanced tools
Comparing version 3.1.5 to 3.1.6
13
index.js
@@ -1,2 +0,2 @@ | ||
import React, { Component, cloneElement } from 'react'; | ||
import React, { Component } from 'react'; | ||
import { StyleSheet, View, AppRegistry } from 'react-native'; | ||
@@ -11,2 +11,12 @@ import StaticContainer from 'static-container'; | ||
class Provider extends Component { | ||
getChildContext() { | ||
return { store: this.props.store }; | ||
} | ||
render() { | ||
return this.props.children; | ||
} | ||
} | ||
AppRegistry.setWrapperComponentProvider(function() { | ||
@@ -71,3 +81,2 @@ return function RootSiblingsWrapper(props) { | ||
if (store) { | ||
const Provider = require('react-redux').Provider; | ||
elements.push( | ||
@@ -74,0 +83,0 @@ <Provider store={store} key={`root-sibling-${key}-provider`}> |
{ | ||
"version": "3.1.5", | ||
"version": "3.1.6", | ||
"name": "react-native-root-siblings", | ||
@@ -4,0 +4,0 @@ "repository": { |
@@ -1,4 +0,6 @@ | ||
### react-native-root-siblings | ||
## react-native-root-siblings [![npm version](https://badge.fury.io/js/react-native-root-siblings.svg)](http://badge.fury.io/js/react-native-root-siblings) | ||
--- | ||
Require react-native version >= 0.47 | ||
Add sibling elements after your app root element. | ||
@@ -5,0 +7,0 @@ The created sibling elements are above the rest of your app elements. |
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
9185
107
159
7