Skip to content

Commit

Permalink
Merge pull request #317 from hossein-zare/dev-5.x
Browse files Browse the repository at this point in the history
5.1.13
  • Loading branch information
hossein-zare authored May 13, 2021
2 parents b096bea + 302c814 commit 12e1f6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ declare module "react-native-dropdown-picker" {
addCustomItem?: boolean;
setOpen: (open: boolean) => void;
//setItems<ParentComponentStateType>(callback: SetStateAction<ParentComponentStateType>): void;
setItems: (callback: (state: ItemType[]) => ItemType[]) => void;
setItems?: (callback: (state: ItemType[]) => ItemType[]) => void;
//setValue<ParentComponentStateType>(callback: SetStateAction<ParentComponentStateType>): void;
setValue: (callback: (state: ValueType | ValueType[] | null) => ValueType | ValueType[] | null) => void;
disableBorderRadius?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-dropdown-picker",
"version": "5.1.12",
"version": "5.1.13",
"description": "A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.",
"keywords": [
"picker",
Expand Down
9 changes: 4 additions & 5 deletions src/components/Picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
Text,
TouchableOpacity,
Image,
LogBox,
FlatList,
TextInput,
Dimensions,
Expand Down Expand Up @@ -169,7 +168,7 @@ function Picker({
* componentDidMount.
*/
useEffect(() => {
LogBox.ignoreLogs(['VirtualizedLists should never be nested']);
// LogBox.ignoreLogs(['VirtualizedLists should never be nested']);

// Get initial seleted items
let initialSelectedItems = [];
Expand Down Expand Up @@ -1452,7 +1451,7 @@ function Picker({
*/
const DropDownFlatListComponent = useMemo(() => (
<FlatList
style={styles.flexGrow}
style={styles.flex}
contentContainerStyle={THEME.flatListContentContainer}
ListEmptyComponent={_ListEmptyComponent}
data={_items}
Expand Down Expand Up @@ -1560,8 +1559,8 @@ function Picker({
}

const styles = StyleSheet.create({
flexGrow: {
flexGrow: 1
flex: {
flex: 1
}
});

Expand Down

0 comments on commit 12e1f6b

Please sign in to comment.