From fdb2bf13d82aa1ef533b3b2149f71b6631534b8e Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Fri, 13 Dec 2024 11:56:28 +0000 Subject: [PATCH 1/2] Update optimizing-flatlist-configuration.md --- docs/optimizing-flatlist-configuration.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/optimizing-flatlist-configuration.md b/docs/optimizing-flatlist-configuration.md index b7f2bb734d2..e0ddcb0b5df 100644 --- a/docs/optimizing-flatlist-configuration.md +++ b/docs/optimizing-flatlist-configuration.md @@ -23,11 +23,11 @@ Here are a list of props that can help to improve `FlatList` performance: ### removeClippedSubviews -| Type | Default | -| ------- | ------- | -| Boolean | False | +| Type | Default | +| ------- | ----------------------------- | +| Boolean | True (Android)
False (iOS) | -If `true`, views that are outside of the viewport are detached from the native view hierarchy. +If `true`, views that are outside of the viewport are automatically detached from the native view hierarchy. **Pros:** This reduces time spent on the main thread, and thus reduces the risk of dropped frames, by excluding views outside of the viewport from the native rendering and drawing traversals. From 96d4e7018e6f7b88f84574a150b1d2f5304a2fdc Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Fri, 13 Dec 2024 12:02:57 +0000 Subject: [PATCH 2/2] Update optimizing-flatlist-configuration.md --- docs/optimizing-flatlist-configuration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/optimizing-flatlist-configuration.md b/docs/optimizing-flatlist-configuration.md index e0ddcb0b5df..3933d4e0697 100644 --- a/docs/optimizing-flatlist-configuration.md +++ b/docs/optimizing-flatlist-configuration.md @@ -23,9 +23,9 @@ Here are a list of props that can help to improve `FlatList` performance: ### removeClippedSubviews -| Type | Default | -| ------- | ----------------------------- | -| Boolean | True (Android)
False (iOS) | +| Type | Default | +| ------- | ------------------------------- | +| Boolean | True (Android)
False (iOS) | If `true`, views that are outside of the viewport are automatically detached from the native view hierarchy.