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

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Ich kann React-Photo-View nicht verwenden, um ein Foto anzuzeigen

by Anonymous » 13 Apr 2025, 22:06

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 (








);
}

Top