react-native-ios-utilities
Version:
Utilities for react-native + iOS and wrappers for using swift together with fabric/paper + JSI
20 lines (17 loc) • 697 B
text/typescript
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type { BubblingEventHandler } 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<{}>;
};
// stubs
export default codegenNativeComponent<NativeProps>('RNIWrapperView', {
excludedPlatforms: ['android'],
interfaceOnly: true,
}) as HostComponent<NativeProps>;