Good day, Everyone! 👋 This version introduces <IconCell /> which is a new cell type derived from <AccessoryCell />. Most existing cells are now derived from <IconCell />. Also, this version comes with some bug fixes and refinements. Thanks to @yuhao1118 and @yk4to for their contributions.
🚨 Breaking Changes:
<SwitchCell />oniOSdoesn't switch when the cell itself is pressed anymore, a new prop calledswitchOnCellis now introduced to control whether the cell controls the switch.- The header text for the
<Section />component is now uppercase by default.
✨ What's new:
- Use
TouchableOpacityandTouchableHighlighton the web instead of theTouchableNativeFeedbackthat was causing crashes. - Added
headerCapitalizedandfooterCapitalizedto<Section />. These properties control whether the header and footer are uppercase. The default istrueon iOS,falseon Android or Web. - Added
titleNumberOfLines,titleEllipsizeMode,subtitleNumberOfLines, andsubtitleEllipsizeModeprops to<StaticCell />. - Added
switchOnCellto<SwitchCell />which controls whether a press on the cell itself toggles the switch.
🐛 Bug Fixes:
- Fixed a bug that was causing the library not to work on the web.
- Fixed a few issues in the TypeScript types.