@rific/scroll-view 0.2.0 → 0.3.0

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/dist/index.d.mts CHANGED
@@ -56,7 +56,7 @@ type FlatListProps<T> = Omit<FlatListProps$1<T>, 'onRefresh' | 'refreshing'> & {
56
56
  pullSearchHeight?: number;
57
57
  ref?: RefObject<FlatList$1 | null>;
58
58
  };
59
- declare const FlatListInner: <T>({ chipProps, chipThreshold, contentContainerStyle: externalContentContainerStyle, data, initialNumToRender, maxToRenderPerBatch, renderFilters, footerFixed: footerFixedProp, gesture, headerFixed: headerFixedProp, horizontal, keyboardAware, ListHeaderComponent: externalListHeaderComponent, onChipPress, onMomentumScrollEnd: externalMomentumScrollEnd, onRefresh, onScrollBeginDrag: externalScrollBeginDrag, onScrollEndDrag: externalScrollEndDrag, pagingEnabled, pullSearchHeight, removeClippedSubviews, showsHorizontalScrollIndicator, showsVerticalScrollIndicator, style, onContentSizeChange, ref: externalRef, windowSize, ...props }: FlatListProps<T>) => react.JSX.Element;
59
+ declare const FlatListInner: <T>({ chipProps, chipThreshold, columnWrapperStyle, contentContainerStyle: externalContentContainerStyle, data, initialNumToRender, keyExtractor, maxToRenderPerBatch, numColumns, renderFilters, renderItem, footerFixed: footerFixedProp, gesture, headerFixed: headerFixedProp, horizontal, keyboardAware, ListHeaderComponent: externalListHeaderComponent, onChipPress, onMomentumScrollEnd: externalMomentumScrollEnd, onRefresh, onScrollBeginDrag: externalScrollBeginDrag, onScrollEndDrag: externalScrollEndDrag, pagingEnabled, pullSearchHeight, removeClippedSubviews, showsHorizontalScrollIndicator, showsVerticalScrollIndicator, style, onContentSizeChange, ref: externalRef, windowSize, ...props }: FlatListProps<T>) => react.JSX.Element;
60
60
  declare const FlatList: typeof FlatListInner;
61
61
 
62
62
  type PullSearchHandle = {
@@ -123,10 +123,14 @@ type ScrollViewContextType = {
123
123
  footerHeightShared: SharedValue<number>;
124
124
  footerFixed: boolean;
125
125
  footerOffset: SharedValue<number>;
126
- headerHeight: number;
126
+ headerHeight: number | null;
127
127
  headerHeightShared: SharedValue<number>;
128
128
  headerFixed: boolean;
129
129
  headerOffset: SharedValue<number>;
130
+ jsListGeneration: RefObject<number>;
131
+ listGeneration: SharedValue<number>;
132
+ onJsListUnmount: () => void;
133
+ onListUnmount: () => void;
130
134
  progress: number | null;
131
135
  pullSearchHeightShared: SharedValue<number>;
132
136
  snapBackFooterShared: SharedValue<boolean>;
@@ -135,7 +139,7 @@ type ScrollViewContextType = {
135
139
  scrollHeight: number;
136
140
  scrollPosition: SharedValue<number>;
137
141
  setFooterHeight: (h: number) => void;
138
- setHeaderHeight: (h: number) => void;
142
+ setHeaderHeight: (h: number | null) => void;
139
143
  setProgress: (p: number | null) => void;
140
144
  setProgressing: (b: boolean) => void;
141
145
  tabBarHeight: number;
package/dist/index.d.ts CHANGED
@@ -56,7 +56,7 @@ type FlatListProps<T> = Omit<FlatListProps$1<T>, 'onRefresh' | 'refreshing'> & {
56
56
  pullSearchHeight?: number;
57
57
  ref?: RefObject<FlatList$1 | null>;
58
58
  };
59
- declare const FlatListInner: <T>({ chipProps, chipThreshold, contentContainerStyle: externalContentContainerStyle, data, initialNumToRender, maxToRenderPerBatch, renderFilters, footerFixed: footerFixedProp, gesture, headerFixed: headerFixedProp, horizontal, keyboardAware, ListHeaderComponent: externalListHeaderComponent, onChipPress, onMomentumScrollEnd: externalMomentumScrollEnd, onRefresh, onScrollBeginDrag: externalScrollBeginDrag, onScrollEndDrag: externalScrollEndDrag, pagingEnabled, pullSearchHeight, removeClippedSubviews, showsHorizontalScrollIndicator, showsVerticalScrollIndicator, style, onContentSizeChange, ref: externalRef, windowSize, ...props }: FlatListProps<T>) => react.JSX.Element;
59
+ declare const FlatListInner: <T>({ chipProps, chipThreshold, columnWrapperStyle, contentContainerStyle: externalContentContainerStyle, data, initialNumToRender, keyExtractor, maxToRenderPerBatch, numColumns, renderFilters, renderItem, footerFixed: footerFixedProp, gesture, headerFixed: headerFixedProp, horizontal, keyboardAware, ListHeaderComponent: externalListHeaderComponent, onChipPress, onMomentumScrollEnd: externalMomentumScrollEnd, onRefresh, onScrollBeginDrag: externalScrollBeginDrag, onScrollEndDrag: externalScrollEndDrag, pagingEnabled, pullSearchHeight, removeClippedSubviews, showsHorizontalScrollIndicator, showsVerticalScrollIndicator, style, onContentSizeChange, ref: externalRef, windowSize, ...props }: FlatListProps<T>) => react.JSX.Element;
60
60
  declare const FlatList: typeof FlatListInner;
61
61
 
62
62
  type PullSearchHandle = {
@@ -123,10 +123,14 @@ type ScrollViewContextType = {
123
123
  footerHeightShared: SharedValue<number>;
124
124
  footerFixed: boolean;
125
125
  footerOffset: SharedValue<number>;
126
- headerHeight: number;
126
+ headerHeight: number | null;
127
127
  headerHeightShared: SharedValue<number>;
128
128
  headerFixed: boolean;
129
129
  headerOffset: SharedValue<number>;
130
+ jsListGeneration: RefObject<number>;
131
+ listGeneration: SharedValue<number>;
132
+ onJsListUnmount: () => void;
133
+ onListUnmount: () => void;
130
134
  progress: number | null;
131
135
  pullSearchHeightShared: SharedValue<number>;
132
136
  snapBackFooterShared: SharedValue<boolean>;
@@ -135,7 +139,7 @@ type ScrollViewContextType = {
135
139
  scrollHeight: number;
136
140
  scrollPosition: SharedValue<number>;
137
141
  setFooterHeight: (h: number) => void;
138
- setHeaderHeight: (h: number) => void;
142
+ setHeaderHeight: (h: number | null) => void;
139
143
  setProgress: (p: number | null) => void;
140
144
  setProgressing: (b: boolean) => void;
141
145
  tabBarHeight: number;