hybrid-navigation 2.18.5 → 2.18.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -103,7 +103,13 @@
103
103
  }
104
104
 
105
105
  - (void)handleDismissWithViewController:(UIViewController *) vc callback:(RCTResponseSenderBlock)callback {
106
- [vc dismissViewControllerAnimated:YES completion:^{
106
+ BOOL animated = YES;
107
+ if ([vc isKindOfClass:[HBDViewController class]]) {
108
+ HBDViewController *hbdvc = (HBDViewController *)vc;
109
+ animated = hbdvc.animatedTransition;
110
+ }
111
+
112
+ [vc dismissViewControllerAnimated:animated completion:^{
107
113
  callback(@[NSNull.null, @YES]);
108
114
  }];
109
115
  }
@@ -119,9 +125,18 @@
119
125
  vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
120
126
  vc.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
121
127
  [vc setRequestCode:requestCode];
128
+
129
+ BOOL animated = YES;
130
+ if ([vc isKindOfClass:[HBDViewController class]]) {
131
+ HBDViewController *hbdvc = (HBDViewController *)vc;
132
+ animated = hbdvc.animatedTransition;
133
+ }
134
+
135
+ if (animated) {
136
+ [[HBDAnimationObserver sharedObserver] beginAnimation];
137
+ }
122
138
 
123
- [[HBDAnimationObserver sharedObserver] beginAnimation];
124
- [presenting presentViewController:vc animated:YES completion:^{
139
+ [presenting presentViewController:vc animated:animated completion:^{
125
140
  callback(@[NSNull.null, @YES]);
126
141
  }];
127
142
  }
@@ -48,6 +48,9 @@
48
48
  }
49
49
 
50
50
  self.forceTransparentDialogWindow = [options[@"forceTransparentDialogWindow"] boolValue];
51
+ if (self.forceTransparentDialogWindow) {
52
+ _animatedTransition = NO;
53
+ }
51
54
 
52
55
  [self applyNavigationBarOptions:options];
53
56
  [self applyTabBarOptions:options];
@@ -111,7 +114,7 @@
111
114
  - (void)willMoveToParentViewController:(UIViewController *)parent {
112
115
  if (self.forceScreenLandscape) {
113
116
  if (parent) {
114
- [self setScreenOrientation:UIInterfaceOrientationLandscapeRight usingMask:UIInterfaceOrientationMaskLandscapeRight];
117
+ [self setScreenOrientation:UIInterfaceOrientationLandscapeRight usingMask:UIInterfaceOrientationMaskLandscape];
115
118
  } else {
116
119
  [self setScreenOrientation:UIInterfaceOrientationPortrait usingMask:UIInterfaceOrientationMaskPortrait];
117
120
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hybrid-navigation",
3
3
  "description": "React Native Navigation that supports seamless navigation between Native and React.",
4
- "version": "2.18.5",
4
+ "version": "2.18.6",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",
7
7
  "react-native": "src/index",
@@ -15,6 +15,7 @@
15
15
  "!android/build",
16
16
  "!android/.gradle",
17
17
  "!android/.idea",
18
+ "!android/.kotlin",
18
19
  "!android/local.properties",
19
20
  "!ios/build",
20
21
  "!**/__tests__"