Skip to content

Commit

Permalink
Merge pull request #185 from slorber/patch-1
Browse files Browse the repository at this point in the history
Allow user to pass "isInteraction" anim config
  • Loading branch information
testshallpass authored Mar 24, 2019
2 parents c449bee + e15e32f commit 742a462
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DropdownAlert.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default class DropdownAlert extends Component {
replaceEnabled: PropTypes.bool,
translucent: PropTypes.bool,
useNativeDriver: PropTypes.bool,
isInteraction: PropTypes.bool,
activeStatusBarStyle: PropTypes.string,
activeStatusBarBackgroundColor: PropTypes.string,
inactiveStatusBarStyle: PropTypes.string,
Expand Down Expand Up @@ -130,6 +131,7 @@ export default class DropdownAlert extends Component {
inactiveStatusBarStyle: StatusBarDefaultBarStyle,
inactiveStatusBarBackgroundColor: StatusBarDefaultBackgroundColor,
updateStatusBar: true,
isInteraction: undefined,
useNativeDriver: true,
elevation: 1,
zIndex: null,
Expand Down Expand Up @@ -337,6 +339,7 @@ export default class DropdownAlert extends Component {
duration: this.state.duration,
friction: 9,
useNativeDriver: this.props.useNativeDriver,
isInteraction: this.props.isInteraction,
}).start();
};
onLayoutEvent(event) {
Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export interface DropdownAlertProps {
replaceEnabled?: boolean
translucent?: boolean
useNativeDriver?: boolean
isInteraction?: boolean
activeStatusBarStyle?: string
activeStatusBarBackgroundColor?: string
inactiveStatusBarStyle?: string
Expand Down

0 comments on commit 742a462

Please sign in to comment.