@legendapp/list 2.0.10 → 2.0.12

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 2.0.12
2
+ - Fix: Scroll velocity calculation was sometimes incorrect when item sizes were very different from estimate
3
+ - Fix: onScroll while scrolling was updating positions without maintainVisibleContentPosition calculations, which was breaking scroll position maintenance
4
+
5
+ ## 2.0.11
6
+ - Fix: Missing React import in a file
7
+
1
8
  ## 2.0.10
2
9
  - Feat: Add onStickyHeaderChange callback for sticky headers
3
10
  - Fix: Items with a falsy value like 0 were not rendering
package/animated.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import * as React$1 from 'react';
2
1
  import * as _legendapp_list from '@legendapp/list';
2
+ import * as React from 'react';
3
3
  import { Animated } from 'react-native';
4
4
 
5
- declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React$1.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
5
+ declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
6
6
  displayName?: string;
7
7
  }>;
8
8
 
package/animated.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import * as React$1 from 'react';
2
1
  import * as _legendapp_list from '@legendapp/list';
2
+ import * as React from 'react';
3
3
  import { Animated } from 'react-native';
4
4
 
5
- declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React$1.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
5
+ declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
6
6
  displayName?: string;
7
7
  }>;
8
8
 
package/index.d.mts CHANGED
@@ -329,6 +329,7 @@ interface InternalState {
329
329
  scroll: number;
330
330
  time: number;
331
331
  }>;
332
+ lastScrollAdjustForHistory?: number;
332
333
  startReachedBlockedByTimer: boolean;
333
334
  endReachedBlockedByTimer: boolean;
334
335
  scrollForNextCalculateItemsInView: {
package/index.d.ts CHANGED
@@ -329,6 +329,7 @@ interface InternalState {
329
329
  scroll: number;
330
330
  time: number;
331
331
  }>;
332
+ lastScrollAdjustForHistory?: number;
332
333
  startReachedBlockedByTimer: boolean;
333
334
  endReachedBlockedByTimer: boolean;
334
335
  scrollForNextCalculateItemsInView: {