Skip to content

Commit

Permalink
align animation duration
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Dec 13, 2024
1 parent 4ecda0d commit 93e1bef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions ios/RNSScreenStackAnimator.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ constexpr bool kUsesNewAnimatorImpl = false;

@interface RNSScreenStackAnimatorLegacy : NSObject <UIViewControllerAnimatedTransitioning>

/// This property is filled whenever there is an ongoing animation and cleared on animation end.
@property (nonatomic, strong, nullable, readonly) UIViewPropertyAnimator *inFlightAnimator;

- (nonnull instancetype)initWithOperation:(UINavigationControllerOperation)operation;

/// In case of interactive / interruptible transition (e.g. swipe back gesture) this method should return
Expand Down
2 changes: 1 addition & 1 deletion ios/RNSScreenStackAnimator.mm
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ - (instancetype)initWithOperation:(UINavigationControllerOperation)operation
{
if (self = [super init]) {
_operation = operation;
_transitionDuration = 0.35; // default duration in seconds
_transitionDuration = RNSDefaultTransitionDuration; // default duration in seconds
}
return self;
}
Expand Down

0 comments on commit 93e1bef

Please sign in to comment.