react-native-ios-utilities
Version:
Utilities for react-native + iOS and wrappers for using swift together with fabric/paper + JSI
31 lines (24 loc) • 821 B
text/typescript
import type { PropsWithChildren } from "react";
import type { ViewProps } from "react-native";
import type { RNIWrapperNativeViewProps } from "./RNIWrapperNativeView";
import type { StateReactTag, StateViewID } from '../../types/SharedStateTypes';
export type RNIWrapperViewRef = {
getViewID: () => StateViewID;
getReactTag: () => StateReactTag;
};
export type RNIWrapperViewInheritedOptionalProps = Partial<Pick<RNIWrapperNativeViewProps,
// shared/internal events
| 'onDidSetViewID'
| 'onViewWillRecycle'
| 'onRawNativeEvent'
// shared/internal props
| 'rawDataForNative'
>>;
export type RNIWrapperViewBaseProps = {
debugShouldEnableLogging?: boolean;
};
export type RNIWrapperViewProps = PropsWithChildren<
RNIWrapperViewInheritedOptionalProps
& RNIWrapperViewBaseProps
& ViewProps
>;