Ich kann React-Photo-View nicht verwenden, um ein Foto anzuzeigenJavaScript

Javascript-Forum
Anonymous
 Ich kann React-Photo-View nicht verwenden, um ein Foto anzuzeigen

Post by Anonymous »

Ich kann meine Fotos nicht mit der React-Photo-View Bibliothek anzeigen.
Mein Code ist wie folgt und es funktioniert nicht. Wenn ich den Fotobieter und Photoprovider entferne, wird mein Bild angezeigt. Ist die Bibliothek nicht mit NextJs kompatibel?

Code: Select all

import parse from 'html-react-parser';
import Image from 'next/image';
import { PhotoProvider, PhotoView } from 'react-photo-view';

import 'react-photo-view/dist/react-photo-view.css';

import { ImageProps } from './types';

export default async function ImageProps(props: ImageProps) {
const { title, content, image, category } = props;

return (








);
}

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post