import { useRoute } from '@react-navigation/native';
import { View } from 'react-native';
import Video from 'react-native-video';
import { useStyles } from './styles';
export function VideoPlayerScreen() {
  const routes = useRoute();
  const {
    styles
  } = useStyles();
  const {
    source
  } = routes.params;
  return /*#__PURE__*/React.createElement(View, {
    style: styles.container
  }, /*#__PURE__*/React.createElement(Video, {
    controls: true,
    style: styles.video,
    source: {
      uri: source
    },
    resizeMode: "contain",
    playWhenInactive: false,
    playInBackground: false
  }));
}
//# sourceMappingURL=VideoPlayer.js.map