Skip to content

Commit

Permalink
Merge pull request #6417 from parasharrajat/iou
Browse files Browse the repository at this point in the history
Fix IOU Modal styles.

(cherry picked from commit 1a6590b)
  • Loading branch information
NikkiWines authored and chiragsalian committed Nov 23, 2021
1 parent e8b26eb commit f97b29c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AnimatedStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const propTypes = {
style: PropTypes.arrayOf(PropTypes.object),

/** Whether we're animating the step in or out */
direction: PropTypes.string,
direction: PropTypes.oneOf(['in', 'out']),
};

const defaultProps = {
Expand All @@ -36,7 +36,7 @@ const AnimatedStep = (props) => {
duration={CONST.ANIMATED_TRANSITION}
animation={getAnimationStyle(props.direction)}
useNativeDriver
style={[...props.style]}
style={props.style}
>
{props.children}
</Animatable.View>
Expand Down
1 change: 1 addition & 0 deletions src/pages/iou/IOUModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ class IOUModal extends Component {
)}
{currentStep === Steps.IOUConfirm && (
<AnimatedStep
style={[styles.flex1]}
direction={this.getDirection()}
>
<IOUConfirmPage
Expand Down

0 comments on commit f97b29c

Please sign in to comment.