UNPKG

react-native-ios-utilities

Version:

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

21 lines (17 loc) 658 B
import { codegenNativeComponent } from 'react-native'; import type { HostComponent, ViewProps } from 'react-native'; import type { BubblingEventHandler } from 'react-native/Libraries/Types/CodegenTypes'; // stubs export interface NativeProps extends ViewProps { // common/shared props rawDataForNative?: string; // common/shared events onDidSetViewID?: BubblingEventHandler<{}>; onViewWillRecycle?: BubblingEventHandler<{}>; onRawNativeEvent?: BubblingEventHandler<{}>; } // stubs export default codegenNativeComponent<NativeProps>('RNIWrapperView', { excludedPlatforms: ['android'], interfaceOnly: true, }) as HostComponent<NativeProps>;