react-native-overlay
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -50,3 +50,3 @@ /** | ||
<RNOverlay isVisible={true} style={styles.container} pointerEvents="none" aboveStatusBar={this.props.aboveStatusBar}> | ||
{React.Children.map(this.props.children, React.addons.cloneWithProps)} | ||
{React.Children.map(this.props.children, React.cloneElement)} | ||
</RNOverlay> | ||
@@ -53,0 +53,0 @@ ); |
{ | ||
"name": "react-native-overlay", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "An <Overlay /> component that brings content inside to the front of the view regardless of its current position in the component tree.", | ||
@@ -19,3 +19,3 @@ "main": "Overlay.ios.js", | ||
"peerDependencies": { | ||
"react-native": ">=0.10.0 || 0.10.0-rc" | ||
"react-native": ">=0.13.0 || 0.13.0-rc" | ||
}, | ||
@@ -22,0 +22,0 @@ "repository": { |
@@ -5,2 +5,6 @@ ## react-native-overlay | ||
### Should you use this? | ||
Ideally, no. This should probably only be used as a last resort. You can usually accomplish what you need to by just absolute positioning an view at the bottom of your root component. | ||
### Add it to your project | ||
@@ -86,3 +90,3 @@ | ||
You can try this code yourself by cloning this repo and running | ||
`Examples/LoaingOverlay`. | ||
`Examples/LoadingOverlay`. | ||
@@ -89,0 +93,0 @@ ## Example - Toast |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
20409
99
1