Skip to content

UiStrings — @gj-kit/expo-ui

A public interface from @gj-kit/expo-ui. The signature below is taken directly from the 0.8.1 release declaration.

import { UiStrings } from '@gj-kit/expo-ui';
/**
* The string injection system — design doc §4.1.
*
* Precedence: an individual prop, then Provider strings, then the built-in en.
* Partial<UiStrings> is deliberately not accepted — when the library adds a key,
* consumers of a hand-assembled bundle see a compile error instead of a missing
* key quietly leaking through in English. Customize by spreading:
* `{ ...koStrings, retry: '다시 시도' }`.
*/
interface UiStrings {
/** The Skeleton accessibility label. */
readonly loading: string;
/** The default EmptyState title. */
readonly emptyTitle: string;
/** The default ErrorState title. */
readonly errorTitle: string;
/** The default ErrorState body. */
readonly errorBody: string;
/** The ErrorState retry button. */
readonly retry: string;
/** The SelectAllRow unselected label. */
readonly selectAll: string;
/** The SelectAllRow deselect label. */
readonly deselectAll: string;
/** ConfirmActionRow cancel. */
readonly cancel: string;
/** ConfirmActionRow confirm. */
readonly confirm: string;
/** The Dialog backdrop accessibility label. */
readonly close: string;
/** The default SearchField placeholder. */
readonly searchPlaceholder: string;
/** The combobox no-results state. */
readonly noResults: string;
/** The ascending state of the DataTable compact sort control. */
readonly sortAscending: string;
/** The descending state of the DataTable compact sort control. */
readonly sortDescending: string;
/** The unsorted state of the DataTable compact sort control. */
readonly sortUnsorted: string;
/**
* The visually hidden keyboard hint referenced by activatable DataTable rows
* on the web through `aria-describedby`.
*/
readonly rowActivationHint: string;
/** The Pagination previous control. */
readonly previousPage: string;
/** The Pagination next control. */
readonly nextPage: string;
/** The Rating announcement when no value is selected. */
readonly ratingNoValue: string;
/** The Rating announcement for a selected value. Keep value and maxRating in the user-facing scale. */
readonly ratingValue: (value: number, maxRating: number) => string;
/** The Rating custom accessibility action that clears a selected value. */
readonly clearRating: string;
/** The DateField year segment name. */
readonly dateFieldYear: string;
/** The DateField month segment name. */
readonly dateFieldMonth: string;
/** The DateField day segment name. */
readonly dateFieldDay: string;
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-ui
  • Version: 0.8.1
  • Public entry: .
  • Source: GitHub