Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix default value of removeClippedSubviews on Android #4399

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/optimizing-flatlist-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)<br />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.

Expand Down
Loading