Changelog
Features
- Added
testID
prop. #454 (@salopeklm) - Added Russian translation. #457 (@Blizzardnya)
- Added Spanish translation. #461 (@Techie-Pi)
- Added
closeOnBackPressed
prop. - Added
onSelectItem
prop.
Breaking changes
Strict types for single and multiple items
interface DropDownPickerSingleProps {
multiple?: false;
onChangeValue?: (value: ValueType | null) => void;
onSelectItem?: (item: ItemType) => void;
setValue: Dispatch<SetStateAction<ValueType | null>>;
value: ValueType | null;
}
interface DropDownPickerMultipleProps {
multiple: true;
onChangeValue?: (value: ValueType[] | null) => void;
onSelectItem?: (items: ItemType[]) => void;
setValue: Dispatch<SetStateAction<ValueType[] | null>>;
value: ValueType[] | null;
}