Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle tab video playback #820

Open
Kstonelc opened this issue Apr 25, 2024 · 1 comment
Open

Toggle tab video playback #820

Kstonelc opened this issue Apr 25, 2024 · 1 comment

Comments

@Kstonelc
Copy link

Kstonelc commented Apr 25, 2024

When I put a video component in one of the views and then switching the tab causes the video to replay and I don't expect that behavior to happen if ios continues to play and android doesn't
`import React, {useState} from 'react';
import {StyleSheet, View, Text} from 'react-native';
import PagerView from 'react-native-pager-view';
import {Video} from '../components';
const _pagerViewTest = () => {
return (
<PagerView
initialPage={0}
style={{
flex: 1,
}}>

First page
<Video file={'action/glute-bridge.mp4'}>


Second page


);
};

export {_pagerViewTest};
`

"react": "18.2.0",
"react-native": "0.72.12",
"react-native-pager-view": "6.3.1",

@MrRefactor
Copy link
Collaborator

Please reproduce it with an expo-snack or example app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants