You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/internal/interop/InteropUiBlockListener.kt
+12-16Lines changed: 12 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -41,31 +41,27 @@ internal class InteropUIBlockListener : UIManagerListener {
41
41
@Synchronized
42
42
overridefunwillMountItems(uiManager:UIManager) {
43
43
if (beforeUIBlocks.isEmpty()) {
44
-
return
45
-
}
46
-
// avoid ConcurrentModificationException by iterating over a copy
47
-
val snapshot =ArrayList(beforeUIBlocks)
48
-
beforeUIBlocks.clear()
49
-
if (uiManager isUIBlockViewResolver) {
50
-
snapshot.forEach { block ->
51
-
block.execute(uiManager)
44
+
return
45
+
}
46
+
beforeUIBlocks.forEach {
47
+
if (uiManager isUIBlockViewResolver) {
48
+
it.execute(uiManager)
52
49
}
53
50
}
51
+
beforeUIBlocks.clear()
54
52
}
55
53
56
54
@Synchronized
57
55
overridefundidMountItems(uiManager:UIManager) {
58
56
if (afterUIBlocks.isEmpty()) {
59
-
return
60
-
}
61
-
// avoid ConcurrentModificationException by iterating over a copy
0 commit comments