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: contributingGuides/STYLE.md
+45
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,9 @@
50
50
-[Stateless components vs Pure Components vs Class based components vs Render Props](#stateless-components-vs-pure-components-vs-class-based-components-vs-render-props---when-to-use-what)
@@ -1105,6 +1108,48 @@ There are several ways to use and declare refs and we prefer the [callback metho
1105
1108
1106
1109
We love React and learning about all the new features that are regularly being added to the API. However, we try to keep our organization's usage of React limited to the most stable set of features that React offers. We do this mainly for **consistency** and so our engineers don't have to spend extra time trying to figure out how everything is working. That said, if you aren't sure if we have adopted something, please ask us first.
1107
1110
1111
+
1112
+
## Handling Scroll Issues with Nested Lists in React Native
1113
+
1114
+
### Problem
1115
+
1116
+
When using `SelectionList` alongside other components (e.g., `Text`, `Button`), wrapping them inside a `ScrollView` can lead to alignment and performance issues. Additionally, using `ScrollView` with nested `FlatList` or `SectionList` causes the error:
1117
+
1118
+
> "VirtualizedLists should never be nested inside plain ScrollViews with the same orientation."
1119
+
1120
+
### Solution
1121
+
1122
+
The correct approach is avoid using `ScrollView`. You can add props like `listHeaderComponent` and `listFooterComponent` to add other components before or after the list while keeping the layout scrollable.
0 commit comments