about summary refs log tree commit diff
path: root/modules/expo-bluesky-gif-view/src/GifView.types.ts
blob: 29ec277f2b60028dcacb1b3c59f51cf1dcc4ba20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import {ViewProps} from 'react-native'

export interface GifViewStateChangeEvent {
  nativeEvent: {
    isPlaying: boolean
    isLoaded: boolean
  }
}

export interface GifViewProps extends ViewProps {
  autoplay?: boolean
  source?: string
  placeholderSource?: string
  onPlayerStateChange?: (event: GifViewStateChangeEvent) => void
}