import React from 'react' import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands' import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent' import type { HostComponent } from 'react-native' import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes' export interface NativeProps extends ViewProps { autoPlay: boolean mediaId?: string renditionType: string resizeMode: string showCheckeredBackground: boolean } export interface NativeCommands { pause: (viewRef: React.ElementRef>) => void resume: (viewRef: React.ElementRef>) => void } export const Commands: NativeCommands = codegenNativeCommands({ supportedCommands: ['pause', 'resume'], }) export default codegenNativeComponent('RTNGiphyMediaView') as HostComponent