import { useNavigation, useRoute } from '@react-navigation/native';
import { Header } from './components';
import { useCallback } from 'react';
import ImageViewing from 'react-native-image-viewing';
export function ImageViewerScreen() {
  const navigation = useNavigation();
  const routes = useRoute();
  const {
    images
  } = routes.params;
  const HeaderComponent = useCallback(() => /*#__PURE__*/React.createElement(Header, {
    onPress: navigation.goBack
  }), [navigation]);
  return /*#__PURE__*/React.createElement(ImageViewing, {
    visible: true,
    imageIndex: 0,
    images: images,
    animationType: "slide",
    HeaderComponent: HeaderComponent,
    onRequestClose: navigation.goBack
  });
}
//# sourceMappingURL=ImageViewer.js.map