Skip to content

Releases: kuraydev/react-native-segmented-control-2

2.2.0 — Inset shadow, New Architecture fixes

Choose a tag to compare

@kuraydev kuraydev released this 12 Aug 15:39

demo

✨ New

  • insetShadow prop (#11) — recess the track with an inner shadow so the raised indicator visually sits inside it. Pass true for a sensible default, or a CSS-like boxShadow string (e.g. "inset 0 3px 8px rgba(0,0,0,0.35)") for full control. Requires RN 0.76+; gracefully ignored on older versions.
  • activeTextStyle prop is back — extra text styling applied only to the active tab.
  • Named TypeScript exports — SegmentedControlProps and TabItem are now exported alongside the default export.

🐛 Fixed

  • RN 0.85 compatibility (#14) — removed the deleted StyleSheet.absoluteFillObject API.
  • 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, proper main/module/types/exports fields.
  • The npm tarball now ships only src/ and lib/ — 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

Choose a tag to compare

@kuraydev kuraydev released this 08 Sep 14:51

What's Changed

Full Changelog: 2.1.0...2.1.1

2.1.0

Choose a tag to compare

@kuraydev kuraydev released this 28 Mar 14:35

What's Changed

New Contributors

Full Changelog: 2.0.1...2.1.0

2.0.1 🚀

Choose a tag to compare

@kuraydev kuraydev released this 15 Jul 16:03

What's Changed

  • Controlled component support by @madox2 in #6
  • Removing Screen width / manual width dependency by @WrathChaos in #7

New Contributors

  • @madox2 made their first contribution in #6
  • @WrathChaos made their first contribution in #7

Full Changelog: 1.1.0...2.0.0

RTL Support and iOS Design Kit Matches

Choose a tag to compare

@kuraydev kuraydev released this 17 Mar 10:08
  • RTL Support 🚀
  • iOS Design Kit Matches 🌟

Thanks to @b0iq for the contribution 🔥

refactor: make it available to set active text color with custom text 🤑

Choose a tag to compare

@kuraydev kuraydev released this 18 Jan 12:02

refactor: make it available to set active text color with custom text 🤑

selectedTabStyle is available with the 1.0.0 version 😍

Choose a tag to compare

@kuraydev kuraydev released this 18 Jan 11:50

selectedTabStyle is available with the 1.0.0 version 😍

First Release 🥳

Choose a tag to compare

@kuraydev kuraydev released this 05 Jun 17:11

First Release 🥳