react-native-element-dropdown
Advanced tools
Comparing version 1.5.10 to 1.6.0
{ | ||
"name": "react-native-element-dropdown", | ||
"title": "React Native Element Dropdown", | ||
"version": "1.5.10", | ||
"version": "1.6.0", | ||
"description": "A react-native dropdown component easy to customize for both iOS and Android.", | ||
@@ -6,0 +6,0 @@ "main": "index.ts", |
@@ -33,3 +33,3 @@ ## react-native-element-dropdown | ||
| valueField | String | Yes | Extract the primary key from the data item | | ||
| onChange | (item) => void | Yes | Selection callback | | ||
| onChange | (item: object) => void | Yes | Selection callback | | ||
| value | Item | No | Selected value | | ||
@@ -48,2 +48,3 @@ | placeholder | String | No | The string that will be rendered before dropdown has been selected | | ||
| search | Boolean | No | Show or hide input search | | ||
| searchQurey | (keyword: string, labelValue: string) => Boolean| No | Callback used to filter the list of items | | ||
| inputSearchStyle | ViewStyle | No | Styling for input search | | ||
@@ -58,3 +59,3 @@ | searchPlaceholder | String | No | The string that will be rendered before text input has been entered | | ||
| renderRightIcon | () => JSX.Element | No | Customize right icon for dropdown | | ||
| renderItem | (item) => JSX.Element | No | Takes an item from data and renders it into the list | | ||
| renderItem | (item: object) => JSX.Element | No | Takes an item from data and renders it into the list | | ||
| flatListProps | FlatListProps | No | Customize FlastList element | | ||
@@ -84,5 +85,6 @@ | onFocus | () => void | No | Callback that is called when the dropdown is focused | | ||
| selectedTextStyle | TextStyle | No | Styling for selected text | | ||
| renderSelectedItem | (item, unSelect?: () => void) => JSX.Element | No | Takes an item from data and renders it into the list selected | | ||
| renderSelectedItem | (item: object, unSelect?: () => void) => JSX.Element | No | Takes an item from data and renders it into the list selected | | ||
| alwaysRenderSelectedItem | Boolean | No | Always show the list of selected items | | ||
| search | Boolean | No | Show or hide input search | | ||
| searchQurey | (keyword: string, labelValue: string) => Boolean | No | Callback used to filter the list of items | | ||
| inputSearchStyle | ViewStyle | No | Styling for input search | | ||
@@ -96,3 +98,3 @@ | searchPlaceholder | String | No | The string that will be rendered before text input has been entered | | ||
| renderRightIcon | () => JSX.Element | No | Customize right icon for dropdown | | ||
| renderItem | (item) => JSX.Element | No | Takes an item from data and renders it into the list | | ||
| renderItem | (item: object) => JSX.Element | No | Takes an item from data and renders it into the list | | ||
| flatListProps | FlatListProps | No | Customize FlastList element | | ||
@@ -99,0 +101,0 @@ | onFocus | () => void | No | Callback that is called when the dropdown is focused | |
@@ -35,4 +35,5 @@ import React from 'react'; | ||
onBlur?: () => void; | ||
searchQuery?: (keyword: string, labelValue: string) => boolean; | ||
}; | ||
export type DropdownProps = IProps; |
@@ -36,4 +36,5 @@ import React from 'react'; | ||
onBlur?:() => void; | ||
searchQuery?: (keyword: string, labelValue: string) => boolean; | ||
}; | ||
export type MultiSelectProps = IProps; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
291870
1997
848