File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ export default class ActionButton extends Component {
218218 backdrop = (
219219 < TouchableWithoutFeedback
220220 style = { styles . overlay }
221- onPress = { ( ) => this . reset ( ) }
221+ onPress = { ( ) => { this . reset ( ) ; this . props . onOverlayPress ( ) } }
222222 >
223223 < Animated . View
224224 style = {
@@ -264,6 +264,7 @@ ActionButton.propTypes = {
264264 itemSize : PropTypes . number ,
265265 autoInactive : PropTypes . bool ,
266266 onPress : PropTypes . func ,
267+ onOverlayPress : PropTypes . func ,
267268 backdrop : PropTypes . oneOfType ( [
268269 PropTypes . bool ,
269270 PropTypes . object ,
@@ -284,6 +285,7 @@ ActionButton.defaultProps = {
284285 outRangeScale : 1 ,
285286 autoInactive : true ,
286287 onPress : ( ) => { } ,
288+ onOverlayPress : ( ) => { } ,
287289 backdrop : false ,
288290 degrees : 135 ,
289291 size : 63 ,
You can’t perform that action at this time.
0 commit comments