Skip to content

Commit 742a462

Browse files
Merge pull request #185 from slorber/patch-1
Allow user to pass "isInteraction" anim config
2 parents c449bee + e15e32f commit 742a462

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

DropdownAlert.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export default class DropdownAlert extends Component {
3838
replaceEnabled: PropTypes.bool,
3939
translucent: PropTypes.bool,
4040
useNativeDriver: PropTypes.bool,
41+
isInteraction: PropTypes.bool,
4142
activeStatusBarStyle: PropTypes.string,
4243
activeStatusBarBackgroundColor: PropTypes.string,
4344
inactiveStatusBarStyle: PropTypes.string,
@@ -130,6 +131,7 @@ export default class DropdownAlert extends Component {
130131
inactiveStatusBarStyle: StatusBarDefaultBarStyle,
131132
inactiveStatusBarBackgroundColor: StatusBarDefaultBackgroundColor,
132133
updateStatusBar: true,
134+
isInteraction: undefined,
133135
useNativeDriver: true,
134136
elevation: 1,
135137
zIndex: null,
@@ -337,6 +339,7 @@ export default class DropdownAlert extends Component {
337339
duration: this.state.duration,
338340
friction: 9,
339341
useNativeDriver: this.props.useNativeDriver,
342+
isInteraction: this.props.isInteraction,
340343
}).start();
341344
};
342345
onLayoutEvent(event) {

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export interface DropdownAlertProps {
3131
replaceEnabled?: boolean
3232
translucent?: boolean
3333
useNativeDriver?: boolean
34+
isInteraction?: boolean
3435
activeStatusBarStyle?: string
3536
activeStatusBarBackgroundColor?: string
3637
inactiveStatusBarStyle?: string

0 commit comments

Comments
 (0)