UNPKG

react-native-ios-utilities

Version:

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

28 lines (23 loc) 926 B
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; import type { BubblingEventHandler, Int32 } from 'react-native/Libraries/Types/CodegenTypes'; import type { HostComponent, ViewProps } from 'react-native'; // stubs export interface NativeProps extends ViewProps { // common/shared props rawDataForNative?: string; // common/shared events onDidSetViewID?: BubblingEventHandler<{}>; onViewWillRecycle?: BubblingEventHandler<{}>; onRawNativeEvent?: BubblingEventHandler<{}>; // value prop stubs shouldImmediatelyDetach?: boolean; reactChildrenCount: Int32; // event prop stubs onContentViewDidDetach?: BubblingEventHandler<{}>; onViewDidDetachFromParent?: BubblingEventHandler<{}>; }; // stubs export default codegenNativeComponent<NativeProps>('RNIDetachedView', { excludedPlatforms: ['android'], interfaceOnly: true, }) as HostComponent<NativeProps>;