TextProps — @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.
Verified import example
Section titled “Verified import example”import { TextProps } from '@gj-kit/expo-ui';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * Text — design doc §5.1 (new). * * The direct consumer of the typography tokens. The predecessor had no text * primitive, so the app duplicated things like `text-[13px] font-bold` in hundreds * of places. Shadowing RN's Text is industry practice (Paper, Tamagui) — reach for * `import { Text as RNText }` when you need the original. */interface TextProps extends Omit<TextProps$1, 'style' | 'role'> { /** Defaults to 'body' — fontSize, lineHeight, fontWeight, and fontFamily are all decided by tokens. */ role?: TextRole | undefined; /** A closed union — typos are compile errors and raw colors go through the style escape hatch (§0). Defaults to 'text'. */ color?: ColorKey | undefined; /** * Renders every digit at the same advance width so columns of figures line up. * Emits `fontVariant: ['tabular-nums']`, which React Native Web serializes as * the CSS `font-variant` shorthand carrying the tabular-figures feature. * Defaults to false. */ tabularNums?: boolean | undefined; style?: StyleProp<TextStyle> | undefined; className?: string | undefined; unstyled?: never;}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.
Release context
Section titled “Release context”- Package:
@gj-kit/expo-ui - Version:
0.8.1 - Public entry:
. - Source: GitHub