Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@types/react-native-autocomplete-input
Advanced tools
TypeScript definitions for react-native-autocomplete-input
npm install --save @types/react-native-autocomplete-input
This package contains type definitions for react-native-autocomplete-input (https://github.com/mrlaessig/react-native-autocomplete-input#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-autocomplete-input.
import { FC, ReactNode } from "react";
import { FlatListProps, GestureResponderHandlers, StyleProp, TextInputProps, ViewStyle } from "react-native";
export interface AutocompleteProps<T> extends TextInputProps {
/**
* style
* These styles will be applied to the container which surrounds the autocomplete component.
*/
containerStyle?: StyleProp<ViewStyle> | undefined;
/**
* bool
* Set to true to hide the suggestion list.
*/
hideResults?: boolean | undefined;
/**
* array
* An array with suggestion items to be rendered in renderItem({ item, index }). Any array with length > 0 will open the suggestion list and any array with length < 1 will hide the list.
*/
data: T[];
/**
* object
* Props to pass on to the underlying FlatList.
*/
flatListProps?: Partial<FlatListProps<T>> | undefined;
/**
* style
* These styles will be applied to the container which surrounds the textInput component.
*/
inputContainerStyle?: StyleProp<ViewStyle> | undefined;
/**
* style
* These styles will be applied to the container which surrounds the result list.
*/
listContainerStyle?: StyleProp<ViewStyle> | undefined;
/**
* style
* These style will be applied to the result list.
*/
listStyle?: StyleProp<ViewStyle> | undefined;
/**
* function
* onShowResults will be called when the autocomplete suggestions appear or disappear.
*/
onShowResults?(showResults: boolean): void;
/**
* function
* onStartShouldSetResponderCapture will be passed to the result list view container (onStartShouldSetResponderCapture).
*/
onStartShouldSetResponderCapture?: GestureResponderHandlers["onStartShouldSetResponderCapture"] | undefined;
/**
* function
* render custom TextInput. All props passed to this function.
*/
renderTextInput?(props: AutocompleteProps<T>): ReactNode;
/**
* function
* render custom result list. Can be used to replace FlatList. All props passed to this function.
*/
renderResultList?(props: AutocompleteProps<T>): ReactNode;
}
export const AutocompleteInput: FC<AutocompleteProps<any>>;
export default AutocompleteInput;
These definitions were written by Ifiok Jr., Kanitkorn Sujautra, joleb, and AJ.
FAQs
TypeScript definitions for react-native-autocomplete-input
The npm package @types/react-native-autocomplete-input receives a total of 1,738 weekly downloads. As such, @types/react-native-autocomplete-input popularity was classified as popular.
We found that @types/react-native-autocomplete-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.