Skip to content

Commit

Permalink
Merge pull request #329 from hossein-zare/dev-5.x
Browse files Browse the repository at this point in the history
5.1.17
  • Loading branch information
hossein-zare authored May 24, 2021
2 parents b294b42 + 30ec155 commit a0b92fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ComponentType, SetStateAction} from "react";
import {ComponentType, SetStateAction, Dispatch} from "react";
import {
FlatListProps,
LayoutChangeEvent,
Expand Down Expand Up @@ -206,9 +206,7 @@ declare module "react-native-dropdown-picker" {
max?: number;
addCustomItem?: boolean;
setOpen: (open: boolean) => void;
//setItems<ParentComponentStateType>(callback: SetStateAction<ParentComponentStateType>): void;
setItems?: (callback: (state: ItemType[]) => ItemType[]) => void;
//setValue<ParentComponentStateType>(callback: SetStateAction<ParentComponentStateType>): void;
setItems?: Dispatch<SetStateAction<any[]>>;
setValue: (callback: (state: ValueType | ValueType[] | null) => ValueType | ValueType[] | null) => void;
disableBorderRadius?: boolean;
containerProps?: ViewProps;
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.16",
"version": "5.1.17",
"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
3 changes: 1 addition & 2 deletions src/components/Picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import React, {

import {
View,
TouchableOpacity,
Text,
Image,
FlatList,
Expand All @@ -22,8 +23,6 @@ import {
StyleSheet
} from 'react-native';

import { TouchableOpacity } from 'react-native-gesture-handler';

const {height: WINDOW_HEIGHT} = Dimensions.get('window');

import Colors from '../constants/colors';
Expand Down

0 comments on commit a0b92fc

Please sign in to comment.