UNPKG

react-native-ios-utilities

Version:

Utilities for react-native + iOS and wrappers for using swift together with fabric/paper + JSI

27 lines (22 loc) 529 B
import type { OnDidSetViewIDEventPayload } from "./SharedViewEvents"; export type Point = { x: number; y: number; }; /** Object return by `DynamicColorIOS` */ export type DynamicColor = { dynamic: { dark: string; light: string; }; } | { dark: string; light: string; }; export type ColorValue = string | DynamicColor; // Native Type: `RNINativeViewIdentifier` export type NativeViewIdentifier = { reactTag: OnDidSetViewIDEventPayload['reactTag']; } | { viewID: OnDidSetViewIDEventPayload['viewID']; };