From 1e1af4cf6133ee85fe7634d885ce54b7c58b4c56 Mon Sep 17 00:00:00 2001 From: luomy Date: Wed, 30 Aug 2023 17:28:58 +0800 Subject: [PATCH] fix(ios): disable view animation only when batch actions exists --- .../component/listview/NativeRenderBaseListViewDataSource.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/native/ios/renderer/component/listview/NativeRenderBaseListViewDataSource.mm b/renderer/native/ios/renderer/component/listview/NativeRenderBaseListViewDataSource.mm index 77f9d4d697a..584da180da2 100644 --- a/renderer/native/ios/renderer/component/listview/NativeRenderBaseListViewDataSource.mm +++ b/renderer/native/ios/renderer/component/listview/NativeRenderBaseListViewDataSource.mm @@ -209,8 +209,8 @@ - (void)applyDiff:(NativeRenderBaseListViewDataSource *)another }]; BOOL success = YES; - [UIView setAnimationsEnabled:NO]; if ([batchUpdate count]) { + [UIView setAnimationsEnabled:NO]; @try { [view performBatchUpdates:^{ for (NSInvocation *invocation in batchUpdate) {