Skip to content

Commit 105a95e

Browse files
author
Ajackster
committed
Added onOverlayPress prop
1 parent ae63ce7 commit 105a95e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ActionButton.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)