React Native Bouncy Checkbox Group v2.0.0
We're excited to announce the release of version 2.0.0 of React Native Bouncy Checkbox Group!
Breaking Changes
- The
initial
prop now accepts both single values and arrays (number | number[] | string | string[]
) - Changed return type of
onChange
callback to match the selection mode (single object or array of objects) - Removed deprecated internal APIs
New Features
- Added support for
multiple
selection mode - Introduced
alwaysSelect
option to ensure one checkbox is always selected in single mode - Added
animationDuration
prop for controlling bounce animation speed - Added
spacing
prop for custom spacing between checkboxes - Added
itemContainerStyle
prop for styling individual checkbox containers
Improvements
- Better TypeScript support with improved type definitions
- Enhanced performance through React hooks optimization
- More flexible styling options
- Updated documentation with comprehensive examples
Dependencies
- Requires
react-native-bouncy-checkbox
version 4.1.2 or higher
Migration Guide
If upgrading from v1.x, note that the onChange
callback now returns the full checkbox object(s) instead of just the ID.