import type { HostComponent } from 'react-native'; import type { ViewProps } from 'react-native'; import type { BubblingEventHandler, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes'; import { codegenNativeComponent } from 'react-native'; type SegmentedControlChangeEvent = Readonly<{ selectedIndex: Int32; target: Int32; }>; export interface NativeProps extends ViewProps { values?: ReadonlyArray; selectedIndex?: WithDefault; enabled?: WithDefault; backgroundColor?: string | null; tintColor?: string | null; textColor?: string | null; momentary?: WithDefault; onChange?: BubblingEventHandler | null; } export default codegenNativeComponent('SegmentedControl') as HostComponent;