callstack / react-native-pager-view

React Native wrapper for the Android ViewPager and iOS UIPageViewController.
MIT License
2.57k stars 399 forks source link

Toggle tab video playback #820

Open Kstonelc opened 2 months ago

Kstonelc commented 2 months ago

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
  <View key="2">
    <Text>Second page</Text>
  </View>
</PagerView>

); };

export {_pagerViewTest}; `

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

MrRefactor commented 1 week ago

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