UNPKG

react-native

Version:

A framework for building native apps using React

25 lines (23 loc) 1.27 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<<3e03a03d2e4f0423c317ca3e6c285bb4>> * * This file was translated from Flow by scripts/build-types/index.js. * Original file: packages/react-native/Libraries/Types/CodegenTypes.js */ import type { EventSubscription } from "../vendor/emitter/EventEmitter"; import type { NativeSyntheticEvent } from "./CoreEventTypes"; export type BubblingEventHandler<T, PaperName extends string | never = never> = (event: NativeSyntheticEvent<T>) => void | Promise<void>; export type DirectEventHandler<T, PaperName extends string | never = never> = (event: NativeSyntheticEvent<T>) => void | Promise<void>; export type Double = number; export type Float = number; export type Int32 = number; export type UnsafeObject = Object; export type UnsafeMixed = unknown; type DefaultTypes = number | boolean | string | ReadonlyArray<string>; export type WithDefault<Type extends DefaultTypes, Value extends (null | undefined | Type) | string> = null | undefined | Type; export type EventEmitter<T> = (handler: ($$PARAM_0$$: T) => void | Promise<void>) => EventSubscription;