Skip to content

Commit

Permalink
fix: android calling nested action sheets
Browse files Browse the repository at this point in the history
- Shouldn't wait until isAnimating since onSelect gets called before _animateOut().
  • Loading branch information
bradbyte committed Nov 5, 2019
1 parent 817582e commit b4f1ae3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ActionSheet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,8 @@ export default class ActionSheet extends React.Component<Props, State> {
showActionSheetWithOptions = (options: ActionSheetOptions, onSelect: (i: number) => void) => {
const { isVisible, isAnimating, overlayOpacity, sheetOpacity } = this.state;

if (isVisible && isAnimating) {
this._deferNextShow = this.showActionSheetWithOptions.bind(this, options, onSelect);
return;
}

if (isVisible) {
this._deferNextShow = this.showActionSheetWithOptions.bind(this, options, onSelect);
return;
}

Expand Down

0 comments on commit b4f1ae3

Please sign in to comment.