Skip to content

Commit

Permalink
remove unused event param
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Apr 21, 2024
1 parent 32f257f commit ef652b1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions modules/expo-bluesky-gif-view/src/GifView.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ export class GifView extends React.PureComponent<GifViewProps> {
console.warn('prefetchAsync is not supported on web')
}

private firePlayerStateChangeEvent = (e: {
isPlaying: boolean
isLoaded: boolean
}) => {
private firePlayerStateChangeEvent = (e: {isPlaying: boolean}) => {
this.props.onPlayerStateChange?.({
nativeEvent: e,
})
Expand All @@ -45,7 +42,6 @@ export class GifView extends React.PureComponent<GifViewProps> {

this.isLoaded = true
this.firePlayerStateChangeEvent({
isLoaded: true,
isPlaying: this.isPlaying,
})
}
Expand All @@ -54,7 +50,6 @@ export class GifView extends React.PureComponent<GifViewProps> {
this.videoPlayerRef.current.play()
this.isPlaying = true
this.firePlayerStateChangeEvent({
isLoaded: this.isLoaded,
isPlaying: true,
})
}
Expand All @@ -63,7 +58,6 @@ export class GifView extends React.PureComponent<GifViewProps> {
this.videoPlayerRef.current.pause()
this.isPlaying = false
this.firePlayerStateChangeEvent({
isLoaded: this.isLoaded,
isPlaying: false,
})
}
Expand Down

0 comments on commit ef652b1

Please sign in to comment.