feat: play video via url

This commit is contained in:
Adrian Castro
2024-04-02 08:51:00 +02:00
parent 21169c6caa
commit df4fe312fc
3 changed files with 30 additions and 17 deletions

View File

@@ -14,13 +14,21 @@ export const BackButton = () => {
onPress={() => {
dismissFullscreenPlayer()
.then(() => {
router.back();
if (router.canGoBack()) {
router.back();
} else {
router.replace("/");
}
return setTimeout(() => {
Keyboard.dismiss();
}, 100);
})
.catch(() => {
router.back();
if (router.canGoBack()) {
router.back();
} else {
router.replace("/");
}
return setTimeout(() => {
Keyboard.dismiss();
}, 100);