浏览代码

shared element fix

yogevbd 6 年前
父节点
当前提交
9c4074da6e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      lib/ios/RNNNavigationStackManager.m
  2. 1
    1
      playground/src/screens/CustomTransitionDestination.js

+ 1
- 1
lib/ios/RNNNavigationStackManager.m 查看文件

@@ -30,7 +30,7 @@ dispatch_queue_t RCTGetUIManagerQueue(void);
30 30
 	self.fromVC = vc;
31 31
 	
32 32
 	
33
-	if (self.toVC.options.animations.push) {
33
+	if (self.toVC.options.animations.push || self.toVC.isCustomTransitioned) {
34 34
 		vc.navigationController.delegate = newTop;
35 35
 	} else {
36 36
 		vc.navigationController.delegate = nil;

+ 1
- 1
playground/src/screens/CustomTransitionDestination.js 查看文件

@@ -18,7 +18,7 @@ class CustomTransitionDestination extends Component {
18 18
           text: 'ye babyyyyyy',
19 19
           fontFamily: 'HelveticaNeue-Italic'
20 20
         },
21
-        largeTitle: true
21
+        largeTitle: false
22 22
       }
23 23
     };
24 24
   }