UNPKG

react-native

Version:

A framework for building native apps using React

40 lines (38 loc) 1.72 kB
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<3b1739a6b18b3bf12d5aa5440da90146>> * * This file was translated from Flow by scripts/js-api/build-types/index.js. * Original file: packages/react-native/Libraries/Text/TextNativeComponent.js */ import type { HostComponent } from "../../src/private/types/HostComponent"; import type { ProcessedColorValue } from "../StyleSheet/processColor"; import type { GestureResponderEvent } from "../Types/CoreEventTypes"; import type { TextProps } from "./TextProps"; export type NativeTextProps = Readonly<Omit<TextProps, keyof { isHighlighted?: boolean | undefined; selectionColor?: ProcessedColorValue | undefined; onClick?: ((event: GestureResponderEvent) => unknown) | undefined; isPressable?: boolean | undefined; }> & { isHighlighted?: boolean | undefined; selectionColor?: ProcessedColorValue | undefined; onClick?: ((event: GestureResponderEvent) => unknown) | undefined; isPressable?: boolean | undefined; }>; /** * `NativeText` is an internal React Native host component, and is exported to * provide lower-level access for libraries. * * @warning `<unstable_NativeText>` provides no semver guarantees and is not * intended to be used in app code. Please use * [`<Text>`](https://reactnative.dev/docs/text) instead. */ export declare const NativeText: HostComponent<NativeTextProps>; export declare type NativeText = typeof NativeText; export declare const NativeVirtualText: HostComponent<NativeTextProps>; export declare type NativeVirtualText = typeof NativeVirtualText;