import type * as React from 'react'; import type { ViewProps } from 'react-native'; import type { DirectEventHandler, Double, Int32, } from 'react-native/Libraries/Types/CodegenTypes'; import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands'; import codegenNativeComponent, { NativeComponentType, } from 'react-native/Libraries/Utilities/codegenNativeComponent'; export type EventInFile = Readonly<{ value: Double; }>; export interface WishlistProps extends ViewProps { inflatorId: string; initialIndex: Int32; onStartReached?: DirectEventHandler>; onEndReached?: DirectEventHandler>; } type NativeType = NativeComponentType; export type ScrollToItem = ( viewRef: React.ElementRef, index: Int32, animated: boolean, ) => void; interface NativeCommands { readonly scrollToItem: ScrollToItem; } export const Commands = codegenNativeCommands({ supportedCommands: ['scrollToItem'], }); export default codegenNativeComponent('MGWishlist', { interfaceOnly: true, });