"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ImageViewerScreen = ImageViewerScreen;
var _native = require("@react-navigation/native");
var _components = require("./components");
var _react = require("react");
var _reactNativeImageViewing = _interopRequireDefault(require("react-native-image-viewing"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function ImageViewerScreen() {
  const navigation = (0, _native.useNavigation)();
  const routes = (0, _native.useRoute)();
  const {
    images
  } = routes.params;
  const HeaderComponent = (0, _react.useCallback)(() => /*#__PURE__*/React.createElement(_components.Header, {
    onPress: navigation.goBack
  }), [navigation]);
  return /*#__PURE__*/React.createElement(_reactNativeImageViewing.default, {
    visible: true,
    imageIndex: 0,
    images: images,
    animationType: "slide",
    HeaderComponent: HeaderComponent,
    onRequestClose: navigation.goBack
  });
}
//# sourceMappingURL=ImageViewer.js.map