Releases: adammcarth/react-native-segmented-picker
Releases · adammcarth/react-native-segmented-picker
v2.0.2
v2.0.1
Fixes a bug with default selections not applying on the first render.
v2.0.0
In this release
- New
native
prop for enabling the real iOS UIPickerView component on Apple devices. - You can now specify the width of picker columns as a flex ratio.
- Improved E2E testing support.
Breaking changes
There are a number of breaking API changes from v1.x.x
which were necessary in order to support the new native integration on iOS.
options
prop is no longer an object, but instead an array of column definition objects. This is so that we can introduce more settings for columns going forward.- Picker items must now have a
label
and avalue
, and additional extraneous properties in picker items are no longer supported. onValueChange
event now emits selections as an object to the first argument.- The value of selections in the
onConfirm
andonCancel
events is now in the form of{columnId: 'column value'}
. testID
's for E2E testing are no longer joined with preset strings. The control overtestID
's is now totally managed by the developer.
Please review to the README file for updated documentation on all the props and events after upgrading.
v1.1.3
- Package is now available on GitHub Packages.
v1.1.1
- Slight modification to the show and hide animation to improve rendering performance.
- Modified the scrolling interaction on iOS so that it snaps to items faster.
v1.1.0
- TypeScript support!
- Removed the
styled-components
dependency. react-native
andreact
are now peer dependencies instead of direct dependencies.- Introduced
testID
attributes for E2E testing frameworks. - Fixed a bug which caused an uncaught exception when the picker was hidden via the
visible
prop. #7 - Improved the transition smoothness when hiding the picker on iOS.
- Package is now covered by user interface tests (in addition to functional unit tests).
v1.0.2
- Increased the height of the list picker items.
- Minor security patch updates for development dependencies.
v1.0.1
This minor patch update allows for the react "key" of list items to be set manually. Refer to the main README file for implementation examples.
Initial Release (Stable)
This is the day zero production release for react-native-segmented-picker
!
There were a couple of pre-production versions which existed prior to this, but since they were somewhat volatile (particularly on iOS), I'm leaving those out of the package version history.