Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

native-x-list

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

native-x-list - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

lib/utils.d.ts

6

lib/list.d.ts
import { ContainerStyleProps } from 'native-x-theme';
import { ReactElement, ReactNode } from 'react';
import { NativeScrollEvent, NativeSyntheticEvent, StyleProp, ViewStyle } from 'react-native';
import React, { ReactElement, ReactNode } from 'react';
import { FlatList, NativeScrollEvent, NativeSyntheticEvent, StyleProp, ViewStyle } from 'react-native';
export declare type ListRendererFn<S> = (item: S, index?: number) => ReactElement | null;

@@ -41,2 +41,2 @@ export interface ListProps<S> extends ContainerStyleProps {

}
export declare function List<S>({ items, children, separator, keyExtractor, divider, horizontal, inverted, groupBy, searchBy, searchText, style, onSelectItem, error, emptyMessage, loading, isRefreshing, onRefresh, onFetchNext, numColumns, fill, disabled, onScrollToTopChange, showScrollIndicator, columnWrapperStyle, onScroll, stickySectionHeadersEnabled, maintainVisibleContent, ...props }: ListProps<S>): JSX.Element;
export declare const List: React.ForwardRefExoticComponent<ListProps<unknown> & React.RefAttributes<FlatList<unknown>>>;

@@ -11,2 +11,3 @@ /* eslint-disable react-hooks/exhaustive-deps */

import { styles as s } from 'tachyons-react-native';
import { useCombinedRefs } from './utils';
const ON_END_REACHED_THRESHOLD = 0.5;

@@ -75,5 +76,5 @@ const SCROLL_EVENT_THROTTLE = 16;

}
export function List({ items, children, separator, keyExtractor, divider, horizontal, inverted, groupBy, searchBy, searchText, style, onSelectItem, error, emptyMessage, loading, isRefreshing = false, onRefresh, onFetchNext, numColumns, fill = false, disabled = false, onScrollToTopChange, showScrollIndicator = true, columnWrapperStyle, onScroll, stickySectionHeadersEnabled = true, maintainVisibleContent, ...props }) {
function ListComponent({ items, children, separator, keyExtractor, divider, horizontal, inverted, groupBy, searchBy, searchText, style, onSelectItem, error, emptyMessage, loading, isRefreshing = false, onRefresh, onFetchNext, numColumns, fill = false, disabled = false, onScrollToTopChange, showScrollIndicator = true, columnWrapperStyle, onScroll, stickySectionHeadersEnabled = true, maintainVisibleContent, ...props }, ref) {
const sectionListRef = useRef();
const listRef = useRef();
const listRef = useCombinedRefs([ref || null]);
const [visibleItems, setVisibleItems] = useState(items);

@@ -202,1 +203,2 @@ const { getColor } = useTheme();

}
export const List = React.forwardRef(ListComponent);
{
"name": "native-x-list",
"version": "1.1.0",
"version": "1.2.0",
"description": "List component",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc