"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.VideoPlayerScreen = VideoPlayerScreen;
var _native = require("@react-navigation/native");
var _reactNative = require("react-native");
var _reactNativeVideo = _interopRequireDefault(require("react-native-video"));
var _styles = require("./styles");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function VideoPlayerScreen() {
  const routes = (0, _native.useRoute)();
  const {
    styles
  } = (0, _styles.useStyles)();
  const {
    source
  } = routes.params;
  return /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.container
  }, /*#__PURE__*/React.createElement(_reactNativeVideo.default, {
    controls: true,
    style: styles.video,
    source: {
      uri: source
    },
    resizeMode: "contain",
    playWhenInactive: false,
    playInBackground: false
  }));
}
//# sourceMappingURL=VideoPlayer.js.map