Repository navigation
Releases: kuraydev/react-native-segmented-control-2
Releases · kuraydev/react-native-segmented-control-2
Release list
2.2.0 — Inset shadow, New Architecture fixes
✨ New
insetShadowprop (#11) — recess the track with an inner shadow so the raised indicator visually sits inside it. Passtruefor a sensible default, or a CSS-likeboxShadowstring (e.g."inset 0 3px 8px rgba(0,0,0,0.35)") for full control. Requires RN 0.76+; gracefully ignored on older versions.activeTextStyleprop is back — extra text styling applied only to the active tab.- Named TypeScript exports —
SegmentedControlPropsandTabItemare now exported alongside the default export.
🐛 Fixed
- RN 0.85 compatibility (#14) — removed the deleted
StyleSheet.absoluteFillObjectAPI. - New Architecture / Fabric (#15) — tabs are now distributed evenly and the indicator no longer lands on a stale offset when layout events arrive a frame apart.
- Indicator no longer slides in from the left on first paint — it starts on the selected tab.
📦 Packaging & tooling
- Rebuilt on react-native-typescript-library-starter: sources in
src/, dual CJS + ESM output with type definitions via react-native-builder-bob, propermain/module/types/exportsfields. - The npm tarball now ships only
src/andlib/— no more editor/config junk. - New jest + @testing-library/react-native suite (100% line coverage) and GitHub Actions CI (typecheck, lint, tests, build).
📚 Docs & example
- README rewritten with per-capability examples and a full typed props reference.
- Example app redesigned into a sectioned showcase (the demo above) — including an in-app light/dark theme switch built with the control itself.
Full changelog: 2.1.1...v2.2.0
2.1.1
What's Changed
- feat: properly add activeTextStyle prop by @christophby in #13
Full Changelog: 2.1.0...2.1.1
2.1.0
What's Changed
- feat: add
activeTextStyleprop by @christophby in #9 - feat: calc slideAnimation by tab layout by @christophby in #8
New Contributors
- @christophby made their first contribution in #9
Full Changelog: 2.0.1...2.1.0
2.0.1 🚀
RTL Support and iOS Design Kit Matches
- RTL Support 🚀
- iOS Design Kit Matches 🌟
Thanks to @b0iq for the contribution 🔥
refactor: make it available to set active text color with custom text 🤑
refactor: make it available to set active text color with custom text 🤑
selectedTabStyle is available with the 1.0.0 version 😍
selectedTabStyle is available with the 1.0.0 version 😍
