Skip to content

Commit

Permalink
Merge pull request #51783 from JKobrynski/fixPublicRoomAttachmentCrash
Browse files Browse the repository at this point in the history
Fix: App crashes when opening attachments in #expensify-roadmap public room on iOS
  • Loading branch information
puneetlath authored Nov 6, 2024
2 parents 48657fe + 0a8f1a1 commit 413c9db
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,22 @@ function ProgressBar({duration, position, seekPosition}: ProgressBarProps) {
};

const pan = Gesture.Pan()
.runOnJS(true)
.onBegin((event) => {
runOnJS(setIsSliderPressed)(true);
runOnJS(checkVideoPlaying)(onCheckVideoPlaying);
runOnJS(pauseVideo)();
runOnJS(progressBarInteraction)(event);
setIsSliderPressed(true);
checkVideoPlaying(onCheckVideoPlaying);
pauseVideo();
progressBarInteraction(event);
})
.onChange((event) => {
runOnJS(progressBarInteraction)(event);
progressBarInteraction(event);
})
.onFinalize(() => {
runOnJS(setIsSliderPressed)(false);
setIsSliderPressed(false);
if (!wasVideoPlayingOnCheck.value) {
return;
}
runOnJS(playVideo)();
playVideo();
});

useEffect(() => {
Expand Down

0 comments on commit 413c9db

Please sign in to comment.