Skip to content

Release 1.0.0

Choose a tag to compare

@amilmohd155 amilmohd155 released this 14 Oct 10:45
· 25 commits to main since this release

1.0.0 (2025-10-14)

  • fix: update package references from 'doclab' to 'doclabs' across the project (512d644)
  • chore: update publishConfig in package.json to include access level (773585c)
  • feat: add RootConfig context and type definitions for time display (5a442e4)
  • feat: add segment components with updated type definitions (0e4cb1c)
  • feat: enhance README and type definitions for segment components; add composability section (acf5261)
  • feat: refactor Clock, Stopwatch, Timer components to use RootContext; remove unused code (113c6f3)
  • feat: refactor Digit component to use RootConfig context and remove DigitConfig context (db0632e)
  • feat: update app name and package references to RN Reanimated Timer; refactor App component (ca991fb)
  • Update issue templates (86d7384)

BREAKING CHANGE

  • Component API has been restructured for better composability
  • Add comprehensive composability documentation section explaining the new segment-based
    architecture
  • Enhance type definitions for segment components (Day, Hour, Minute, Second, Millisecond,
    AMPM)
  • Add support for className props throughout component hierarchy
  • Document className and style props for individual segment components
  • Update examples to showcase composable structure with Timer.Minute, Timer.Second etc.
  • Add detailed documentation for segment props including digitStyle and digitClassName
  • Improve common props documentation with better descriptions and examples

Components now require using subcomponents instead of props:

  • Before:
<Timer durationMs={60000} showHours showMinutes />
  • After:
<Timer durationMs={60000}>
 <Timer.Hour />
 <Timer.Minute />
</Timer>

This change provides maximum flexibility and customization while maintaining consistent
APIs across all components.