File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export default class Drawer extends Component {
32
32
headerHeight : PropTypes . number ,
33
33
// Height of the visible teaser area at the bottom of the screen
34
34
teaserHeight : PropTypes . number ,
35
+ onClose : PropTypes . func ,
35
36
} ;
36
37
37
38
// Set default prop values
@@ -40,6 +41,7 @@ export default class Drawer extends Component {
40
41
header : 'Messages' ,
41
42
headerHeight : 70 ,
42
43
teaserHeight : 75 ,
44
+ onClose :( ) => { }
43
45
} ;
44
46
45
47
// Define state
@@ -308,6 +310,7 @@ export default class Drawer extends Component {
308
310
309
311
// Minimize window and keep a teaser at the bottom
310
312
close = ( ) => {
313
+ this . props . onClose ( ) ;
311
314
this . _scrollView . scrollTo ( { y : 0 } ) ;
312
315
Animated . timing ( this . _animatedPosition , {
313
316
toValue : this . config . position . start ,
You can’t perform that action at this time.
0 commit comments