React Native Select Pro v2
Changes
Added example using overridden
flatListProps
Added an option to hide already selected options from the list
hideSelectedOptions
Added option to show selected options below select input
separatedMultiple
Added option to set the width of a single selected option
widthThreshold
Removed
animationDuration
andanimated
props to manage animated select. Instead addedanimation
prop which accepts boolean or animation time duration in milliseconds.Select animation was disabled by default, now the select animation is enabled by default.
There was multiple styles props (
selectContainerStyle
, etc.), now there is only one style propstyles
which accepts object of styles.Added a new prop
hasBackdrop
to manage backdrop visibility.For sections select added support for:
multiple
,searchable
,scrollToSelectedOption
When select is
searchable
then focus on opened select.Removed
selectControlClearOptionA11yLabel
prop, now withclearOptionButtonProps
you can override accessibility label.Removed
selectControlOpenDropdownA11yLabel
prop, now withselectContainerProps
you can override accessibility label.Added
clearOptionButtonProps
,clearOptionImageProps
,arrowButtonProps
,arrowImageProps
,selectRightIconsProps
,selectLeftIconsProps
,selectLeftIconImageProps
,sectionHeaderButtonProps
,sectionHeaderTextProps
,sectionHeaderImageProps
,selectTextProps
props to override default props.Added
onSectionSelect
callback to get selected section.Added
onSectionRemove
callback to get removed section.Added
onChangeText
callback to get text select input value.Renamed
onDropdownOpened
toonSelectOpened
Renamed
onDropdownClosed
toonSelectClosed
Renamed
multiSelection
tomultiple
Renamed
closeDropdownOnSelect
tocloseOptionsListOnSelect
Removed
OptionComponent
and now you can useoptionButtonProps
,optionTextProps
,optionStyles
to custom option component.Fixes in accessibility.
Better TypeScript support for example in
onSelect
callback.Fixed multiple bugs.
Refactored example app and added more examples.
Updated dependencies.
Rewritten docs.