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

react-native-autocomplete-input

Package Overview
Dependencies
Maintainers
0
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-autocomplete-input - npm Package Compare versions

Comparing version 5.5.0 to 5.5.1

12

dist/index.js

@@ -16,4 +16,4 @@ import React from 'react';

const defaultRenderItems = ({ item }) => <Text>{String(item)}</Text>;
const { data, containerStyle, hideResults, inputContainerStyle, listContainerStyle, onShowResults, onStartShouldSetResponderCapture = () => false, renderResultList: renderResultListFunction = DefaultResultList, renderTextInput: renderTextInputFunction = DefaultTextInput, flatListProps, style, ...textInputProps } = props;
function renderResultList() {
const { data, renderResultList: renderFunction = DefaultResultList, flatListProps } = props;
const listProps = {

@@ -26,14 +26,12 @@ data,

};
return renderFunction(listProps);
return renderResultListFunction(listProps);
}
function renderTextInput() {
const { renderTextInput: renderFunction = DefaultTextInput, style } = props;
const textProps = {
...props,
const renderProps = {
...textInputProps,
style: [styles.input, style],
ref,
};
return renderFunction(textProps);
return renderTextInputFunction(renderProps);
}
const { data, containerStyle, hideResults, inputContainerStyle, listContainerStyle, onShowResults, onStartShouldSetResponderCapture = () => false, } = props;
const showResults = data.length > 0;

@@ -40,0 +38,0 @@ onShowResults?.(showResults);

{
"name": "react-native-autocomplete-input",
"version": "5.5.0",
"version": "5.5.1",
"description": "Pure javascript autocomplete input for react-native",

@@ -5,0 +5,0 @@ "main": "dist/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