Skip to content

Commit a76db41

Browse files
committed
Remove deprecated props
1 parent d0aea59 commit a76db41

File tree

2 files changed

+1
-49
lines changed

2 files changed

+1
-49
lines changed

src/FlashListProps.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,6 @@ export type ListRenderItem<TItem> = (
3939
info: ListRenderItemInfo<TItem>
4040
) => React.ReactElement | null;
4141

42-
export type ContentStyle = Pick<
43-
ViewStyle,
44-
| "backgroundColor"
45-
| "paddingTop"
46-
| "paddingLeft"
47-
| "paddingRight"
48-
| "paddingBottom"
49-
| "padding"
50-
| "paddingVertical"
51-
| "paddingHorizontal"
52-
>;
53-
5442
export interface ViewabilityConfigCallbackPair<TItem> {
5543
viewabilityConfig: ViewabilityConfig;
5644
onViewableItemsChanged:
@@ -156,12 +144,6 @@ export interface FlashListProps<TItem>
156144
| React.ComponentType<ScrollViewProps>
157145
| React.FC<ScrollViewProps>;
158146

159-
/**
160-
* You can use `contentContainerStyle` to apply padding that will be applied to the whole content itself.
161-
* For example, you can apply this padding, so that all of your items have leading and trailing space.
162-
*/
163-
contentContainerStyle?: ContentStyle;
164-
165147
/**
166148
* Draw distance for advanced rendering (in dp/px)
167149
*/
@@ -184,11 +166,6 @@ export interface FlashListProps<TItem>
184166
*/
185167
initialScrollIndex?: number | null | undefined;
186168

187-
/**
188-
* Reverses the direction of scroll. Uses scale transforms of -1.
189-
*/
190-
inverted?: boolean | null | undefined;
191-
192169
/**
193170
* Used to extract a unique key for a given item at the specified index.
194171
* Key is used for optimizing performance. Defining `keyExtractor` is also necessary
@@ -304,21 +281,6 @@ export interface FlashListProps<TItem>
304281
| ViewabilityConfigCallbackPairs<TItem>
305282
| undefined;
306283

307-
/**
308-
* FlashList attempts to measure size of horizontal lists by drawing an extra list item in advance. This can sometimes cause issues when used with `initialScrollIndex` in lists
309-
* with very little content. You might see some amount of over scroll. When set to true the list's rendered size needs to be deterministic (i.e., height and width greater than 0)
310-
* as FlashList will skip rendering the extra item for measurement. Default value is `false`.
311-
*/
312-
disableHorizontalListHeightMeasurement?: boolean;
313-
314-
/**
315-
* FlashList applies some fixes to layouts of its children which can conflict with custom `CellRendererComponent`
316-
* implementations. You can disable this behavior by setting this to `true`.
317-
* Recommendation: Set this to `true` while you apply special behavior to the `CellRendererComponent`. Once done set this to
318-
* `false` again.
319-
*/
320-
disableAutoLayout?: boolean;
321-
322284
/**
323285
* New arch only
324286
* Maximum number of items in the recycle pool. These are the items that are cached in the recycle pool when they are scrolled off the screen.

src/recyclerview/RecyclerViewProps.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
import { ScrollViewProps } from "react-native";
2-
3-
import { FlashListProps } from "../FlashListProps";
4-
5-
export interface RecyclerViewProps<TItem>
6-
extends Omit<FlashListProps<TItem>, "contentContainerStyle"> {
7-
/**
8-
* Style for the RecyclerView's parent container.
9-
*/
10-
contentContainerStyle?: ScrollViewProps["contentContainerStyle"];
11-
}
1+
export { FlashListProps as RecyclerViewProps } from "../FlashListProps";

0 commit comments

Comments
 (0)