@dreamstack-us/section-flow 0.0.1 → 0.0.3

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.cts CHANGED
@@ -125,7 +125,6 @@ interface SectionFlowProps<TItem> extends Omit<ScrollViewProps, "children"> {
125
125
  estimatedSectionFooterSize?: number;
126
126
  horizontal?: boolean;
127
127
  stickySectionHeadersEnabled?: boolean;
128
- stickyHeaderStyle?: StyleProp<ViewStyle>;
129
128
  collapsible?: boolean;
130
129
  defaultCollapsed?: string[];
131
130
  onSectionToggle?: (sectionKey: string, collapsed: boolean) => void;
package/dist/index.d.ts CHANGED
@@ -125,7 +125,6 @@ interface SectionFlowProps<TItem> extends Omit<ScrollViewProps, "children"> {
125
125
  estimatedSectionFooterSize?: number;
126
126
  horizontal?: boolean;
127
127
  stickySectionHeadersEnabled?: boolean;
128
- stickyHeaderStyle?: StyleProp<ViewStyle>;
129
128
  collapsible?: boolean;
130
129
  defaultCollapsed?: string[];
131
130
  onSectionToggle?: (sectionKey: string, collapsed: boolean) => void;
package/dist/index.js CHANGED
@@ -1523,7 +1523,8 @@ const styles$2 = StyleSheet.create({ shadow: {
1523
1523
  height: 2
1524
1524
  },
1525
1525
  shadowOpacity: .1,
1526
- shadowRadius: 4
1526
+ shadowRadius: 4,
1527
+ backgroundColor: "#fff"
1527
1528
  } });
1528
1529
  const StickyHeaderContainer = memo(StickyHeaderContainerComponent);
1529
1530
  function AnimatedStickyHeaderContainerComponent({ stickySection, animatedTranslateY, sections, renderSectionHeader, horizontal = false, style }) {
@@ -1569,7 +1570,7 @@ const AnimatedStickyHeaderContainer = memo(AnimatedStickyHeaderContainerComponen
1569
1570
  * - Absolute positioning with computed layouts
1570
1571
  */
1571
1572
  function SectionFlowInner(props, ref) {
1572
- const { sections, renderItem, renderSectionHeader, renderSectionFooter, keyExtractor, getItemType, estimatedItemSize = DEFAULT_ESTIMATED_ITEM_SIZE, estimatedSectionHeaderSize = DEFAULT_ESTIMATED_HEADER_SIZE, estimatedSectionFooterSize = 0, horizontal = false, stickySectionHeadersEnabled = true, stickyHeaderStyle, collapsible = false, defaultCollapsed = [], onSectionToggle, maxItemsInRecyclePool, drawDistance = DEFAULT_DRAW_DISTANCE, viewabilityConfig, onViewableItemsChanged, onEndReached, onEndReachedThreshold, style, contentContainerStyle, ListHeaderComponent, ListFooterComponent, ListEmptyComponent, refreshing, onRefresh, extraData, debug = false,...scrollViewProps } = props;
1573
+ const { sections, renderItem, renderSectionHeader, renderSectionFooter, keyExtractor, getItemType, estimatedItemSize = DEFAULT_ESTIMATED_ITEM_SIZE, estimatedSectionHeaderSize = DEFAULT_ESTIMATED_HEADER_SIZE, estimatedSectionFooterSize = 0, horizontal = false, stickySectionHeadersEnabled = true, collapsible = false, defaultCollapsed = [], onSectionToggle, maxItemsInRecyclePool, drawDistance = DEFAULT_DRAW_DISTANCE, viewabilityConfig, onViewableItemsChanged, onEndReached, onEndReachedThreshold, style, contentContainerStyle, ListHeaderComponent, ListFooterComponent, ListEmptyComponent, refreshing, onRefresh, extraData, debug = false,...scrollViewProps } = props;
1573
1574
  const scrollViewRef = useRef(null);
1574
1575
  const [viewportSize, setViewportSize] = useState({
1575
1576
  width: 0,
@@ -1831,8 +1832,7 @@ function SectionFlowInner(props, ref) {
1831
1832
  translateY: stickyHeaderState.translateY,
1832
1833
  sections,
1833
1834
  renderSectionHeader,
1834
- horizontal,
1835
- style: stickyHeaderStyle
1835
+ horizontal
1836
1836
  }),
1837
1837
  debug && /* @__PURE__ */ jsx(View, {
1838
1838
  style: styles$1.debugOverlay,