BlueWallet/codegen/SegmentControlNativeComponent.ts
2026-03-16 21:13:23 +00:00

17 lines
592 B
TypeScript

import type { ViewProps } from 'react-native';
import type { BubblingEventHandler, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
export interface NativeProps extends ViewProps {
values: string[];
selectedIndex: Int32;
enabled: boolean;
backgroundColor: string;
tintColor: string;
textColor: string;
momentary: boolean;
onChange?: BubblingEventHandler<Readonly<{ selectedIndex: Int32 }>>;
}
export default codegenNativeComponent<NativeProps>('CustomSegmentedControl');