@unpourtous/react-native-popup-stub
Advanced tools
Comparing version 1.0.15 to 1.0.16
{ | ||
"name": "@unpourtous/react-native-popup-stub", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "A popup container for implements your own popups like ActionSheet, Dialog, Alert, Toast ...", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -234,3 +234,5 @@ /* global __DEV__ */ | ||
if (this.state.popups.size === 0) { | ||
return null | ||
// force update | ||
// if return null, it won't refresh in some android devices | ||
return <View style={{position: 'absolute', left: 0, top: 0, height: 0, width: 0}} /> | ||
} | ||
@@ -237,0 +239,0 @@ |
@@ -31,3 +31,3 @@ # react-native-popup-stub | ||
### PopupStub.addPopup(component, option) | ||
### PopupStub.stub.addPopup(component, option) | ||
Add popup to PopupStub, use option to controller actions for each Component/Layers. | ||
@@ -49,3 +49,3 @@ | ||
### PopupStub.removePopup(id) | ||
### PopupStub.stub.removePopup(id) | ||
Invoke popup exiting animation and remove it on animation end | ||
@@ -116,2 +116,9 @@ | ||
## TODO List | ||
- [ ] Enable reversing any valid animations | ||
- [ ] Support onAnimationEnd | ||
- [ ] Support onClose callback or so | ||
- [ ] Each popup an independent mask, rather than share a visual one | ||
## License | ||
@@ -118,0 +125,0 @@ This library is distributed under MIT Licence. |
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
102422
373
126
1