diff --git a/ios/Library/RNTModalViewController/RNTModalViewController.m b/ios/Library/RNTModalViewController/RNTModalViewController.m index a695eeb..d581919 100644 --- a/ios/Library/RNTModalViewController/RNTModalViewController.m +++ b/ios/Library/RNTModalViewController/RNTModalViewController.m @@ -14,6 +14,9 @@ - (instancetype)initWithDelegate:(id)delegate { if (self) { self.reactSubviewContainer = [[UIView alloc] init]; self.delegate = delegate; + ModalAnimation *defaultAnimation = [[ModalAnimation alloc] init]; + self.inAnimation = defaultAnimation; + self.outAnimation = defaultAnimation; } return self; } @@ -37,6 +40,11 @@ - (void)viewDidLoad { [self setupReactSubview:self.reactSubviewContainer]; } +- (void)viewDidAppear:(BOOL)animated { + [super viewDidAppear:animated]; + [self.inAnimation animate:self.reactSubviewContainer completion:nil]; +} + - (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews];