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
1
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 2.0.0 to 2.1.0

13

index.js

@@ -39,5 +39,12 @@ import React, { Component, PropTypes } from 'react';

/**
* `renderSeparator` will be called to render the list separators
* which will be displayed between the list elements in the result view
* below the text input.
*/
renderSeparator: PropTypes.func,
/**
* `onShowResults` will be called when list is going to
* show/hide results.
*/
onShowResults: PropTypes.func,

@@ -53,3 +60,4 @@ /**

defaultValue: '',
renderItem: rowData => <Text>{rowData}</Text>
renderItem: rowData => <Text>{rowData}</Text>,
renderSeparator: null
};

@@ -89,3 +97,3 @@

_renderItems() {
const { listStyle, renderItem } = this.props;
const { listStyle, renderItem, renderSeparator } = this.props;
const { dataSource } = this.state;

@@ -97,2 +105,3 @@ return (

renderRow={renderItem}
renderSeparator={renderSeparator}
style={[styles.list, listStyle]}

@@ -99,0 +108,0 @@ />

2

package.json
{
"name": "react-native-autocomplete-input",
"version": "2.0.0",
"version": "2.1.0",
"description": "Pure javascript autocomplete input for react-native",

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

@@ -25,4 +25,8 @@ # react-native-autocomplete-input

### Android
On Android please install the v.1.12 release. The v2.0.0 release don’t show the suggestion list correctly because RN for Android doesn’t support overflows (see [#20](https://github.com/l-urence/react-native-autocomplete-input/issues/2://github.com/l-urence/react-native-autocomplete-input/issues/20)).
On Android please install the v.1.1.2 release. The v2.0.0 release don’t show the suggestion list correctly because RN for Android doesn’t support overflows (see [#20](//github.com/l-urence/react-native-autocomplete-input/issues/20)).
```shell
$ npm install --save react-native-autocomplete-input@1.1.2
```
### Example

@@ -64,2 +68,3 @@ This brief example should illustrate the usage of the autocomplete:

| renderItem | function | `renderItem` will be called to render the data objects which will be displayed in the result view below the text input. |
| renderSeparator | function | `renderSeparator` will be called to render the list separators which will be displayed between the list elements in the result view below the text input. |
| onShowResult | function | `onShowResult` will be called when the autocomplete suggestions appear or disappear.

@@ -66,0 +71,0 @@ | renderTextInput | function | render custom TextInput. All props passed to this function.

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