瀏覽代碼

set waitForRender on sharedElement transition

yogevbd 6 年之前
父節點
當前提交
326d2fc9ad
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      lib/ios/RNNCommandsHandler.m

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

@@ -126,7 +126,7 @@ static NSString* const setDefaultOptions	= @"setDefaultOptions";
126 126
 		}
127 127
 	} else {
128 128
 		id animationDelegate = (newVc.options.animations.push.hasCustomAnimation || newVc.isCustomTransitioned) ? newVc : nil;
129
-		[newVc waitForReactViewRender:newVc.options.animations.push.waitForRender perform:^{
129
+		[newVc waitForReactViewRender:(newVc.options.animations.push.waitForRender || animationDelegate) perform:^{
130 130
 			[_stackManager push:newVc onTop:fromVC animated:newVc.options.animations.push.enable animationDelegate:animationDelegate completion:^{
131 131
 				[_eventEmitter sendOnNavigationCommandCompletion:push params:@{@"componentId": componentId}];
132 132
 				completion();