Skip to content
This repository was archived by the owner on Aug 13, 2018. It is now read-only.

Commit 9a77f1e

Browse files
authored
Merge pull request #12 from 9gag-open-source/fix/11-undefinedSnackBar
Fix/11 undefined snack bar
2 parents b99503e + deae601 commit 9a77f1e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-snackbar-dialog",
3-
"version": "1.2.4",
3+
"version": "1.2.5",
44
"description": "A react native snackbar with dialog options",
55
"main": "dist/index.js",
66
"scripts": {

src/SnackBarManager.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ export default class SnackBarManager {
1818
props.onAutoDismiss = this.dismiss
1919
}
2020

21-
const current = new RootSiblings(<SnackBar {...props} />, () => {
22-
this.current = current
23-
callback()
24-
})
21+
const current = new RootSiblings(<SnackBar {...props} />)
22+
this.current = current
23+
callback()
2524
}
2625

2726
_removeCurrent = (callback?: Function = () => {}): void => {

0 commit comments

Comments
 (0)