UNPKG

react-native-screens

Version:
25 lines (20 loc) 593 B
'use client'; import type { CodegenTypes as CT, HostComponent, ViewProps, } from 'react-native'; import { codegenNativeComponent } from 'react-native'; type SpacerSize = 'fixed' | 'flexible'; type Placement = 'leading' | 'trailing'; export interface NativeProps extends ViewProps { placement?: CT.WithDefault<Placement, 'trailing'>; sizing?: CT.WithDefault<SpacerSize, 'flexible'>; width?: CT.Float | undefined; } export default codegenNativeComponent<NativeProps>( 'RNSStackHeaderItemSpacerIOS', { excludedPlatforms: ['android'], }, ) as HostComponent<NativeProps>;