github akveo/react-native-ui-kitten @ui-kitten/components@6.0.0-beta.2

pre-release3 hours ago

Patch Changes

  • #1868 e8e14be Thanks @github-actions! - Declare the ./devsupport subpath in exports and stop the package importing itself.

    Four internal modules imported through the package's own name — progressBar and
    circularProgressBar pulled from @ui-kitten/components itself, a circular import of the
    package barrel, while modal and calendarHeader reached in via undeclared subpaths.
    Metro reported these as not listed in the "exports" and fell back to file-based
    resolution; they now use relative imports.

    ./devsupport is a real public surface (RenderProp, TouchableWebElement) and is now a
    declared export with its own types, react-native, source, and default conditions.
    Bundling a consumer app produces no exports warnings.

  • 73e517f Thanks @bataevvlad! - Export AutocompleteRef, InputRef, and ListRef from the package root.

    All three were defined and exported by their own modules but never re-exported from the
    barrel, so consumers had no way to type a ref for Autocomplete, Input, or List
    the same gap that made IconRef unusable in practice. They now sit alongside the
    already-exported CalendarRef, DatepickerRef, RangeCalendarRef, RangeDatepickerRef,
    and SelectRef.

  • #1868 92eedc8 Thanks @github-actions! - Ship generated type definitions instead of raw source.

    types pointed at ./index.ts, so consuming projects typechecked the library's own
    source under their tsconfig and saw 221 errors from node_modules — with no workaround,
    since skipLibCheck only skips .d.ts files. The package now builds .d.ts via
    react-native-builder-bob's typescript target and points types at
    ./lib/typescript/index.d.ts.

    Fixing the 22 type errors that blocked declaration output also corrected real bugs:

    • React.ReactText was removed in React 19; replaced with string | number across 19 sites
    • Calendar's getViewMode() was typed () => string but returns a CalendarViewMode
    • TabView's view pager ref was typed as the component value rather than ViewPagerRef
    • DatepickerProps declared conflicting onBlur/onFocus inherited from ViewProps
    • dateService widened to NativeDateService | DateService<D> instead of DateService<D>

    Button, Select, and Datepicker now accept string | number for text props, matching
    CheckBox/Toggle/Radio and the runtime behaviour of FalsyText. Previously the
    idiomatic <Button>TEXT</Button> did not typecheck.

    Type-only changes — the compiled bundle is byte-identical.

Don't miss a new react-native-ui-kitten release

NewReleases is sending notifications on new releases.