Skip to content

Commit

Permalink
fix: fix options close animation conflict with react native modal (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
sajaprzemyslaw authored Sep 12, 2023
1 parent e9baccb commit 1994904
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-swans-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mobile-reality/react-native-select-pro': patch
---

fix options close animation conflict with react native modal
4 changes: 0 additions & 4 deletions packages/react-native-select-pro/src/state/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ export const reducer = <T>(state: State<T>, action: ActionType<T>): State<T> =>
state.animationDuration > 0 &&
LayoutAnimation.configureNext({
duration: state.animationDuration,
delete: {
type: LayoutAnimation.Types.linear,
property: LayoutAnimation.Properties.opacity,
},
});
return {
...state,
Expand Down

0 comments on commit 1994904

Please sign in to comment.