@legendapp/list 3.0.0-beta.54 → 3.0.0-beta.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/reanimated.d.ts CHANGED
@@ -229,6 +229,13 @@ interface LegendListSpecificProps<ItemT, TItemType extends string | undefined> {
229
229
  * Style for the header component.
230
230
  */
231
231
  ListHeaderComponentStyle?: StyleProp<ViewStyle> | undefined;
232
+ /**
233
+ * Estimated height of the ListHeaderComponent. Provide this when the expected header height
234
+ * is known before layout so that only the items actually visible below the header are rendered
235
+ * on the initial frame, rather than a full screen's worth of items that are hidden behind it.
236
+ * The measured header size still replaces this value after layout.
237
+ */
238
+ estimatedHeaderSize?: number;
232
239
  /**
233
240
  * If true, auto-scrolls to end when new items are added.
234
241
  * Use an options object to opt into specific triggers and control whether that scroll is animated.
@@ -263,6 +270,12 @@ interface LegendListSpecificProps<ItemT, TItemType extends string | undefined> {
263
270
  * @default 1
264
271
  */
265
272
  numColumns?: number;
273
+ /**
274
+ * Force RTL mode for this list instance.
275
+ * When undefined, uses React Native's global I18nManager.isRTL.
276
+ * @default undefined
277
+ */
278
+ rtl?: boolean;
266
279
  /**
267
280
  * Called when scrolling reaches the end within onEndReachedThreshold.
268
281
  */
package/section-list.d.ts CHANGED
@@ -285,6 +285,13 @@ interface LegendListSpecificProps<ItemT, TItemType extends string | undefined> {
285
285
  * Style for the header component.
286
286
  */
287
287
  ListHeaderComponentStyle?: StyleProp<ViewStyle> | undefined;
288
+ /**
289
+ * Estimated height of the ListHeaderComponent. Provide this when the expected header height
290
+ * is known before layout so that only the items actually visible below the header are rendered
291
+ * on the initial frame, rather than a full screen's worth of items that are hidden behind it.
292
+ * The measured header size still replaces this value after layout.
293
+ */
294
+ estimatedHeaderSize?: number;
288
295
  /**
289
296
  * If true, auto-scrolls to end when new items are added.
290
297
  * Use an options object to opt into specific triggers and control whether that scroll is animated.
@@ -319,6 +326,12 @@ interface LegendListSpecificProps<ItemT, TItemType extends string | undefined> {
319
326
  * @default 1
320
327
  */
321
328
  numColumns?: number;
329
+ /**
330
+ * Force RTL mode for this list instance.
331
+ * When undefined, uses React Native's global I18nManager.isRTL.
332
+ * @default undefined
333
+ */
334
+ rtl?: boolean;
322
335
  /**
323
336
  * Called when scrolling reaches the end within onEndReachedThreshold.
324
337
  */