Repository navigation
β¨ 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
