react-native-autocomplete-input
Advanced tools
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 @@ /> |
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10652
162
73