We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This package merely does not work with Nextjs. I get a blank image.
`import React, { useState, useEffect, useMemo } from "react"; import View360, { EquirectProjection } from "@egjs/react-view360"; import "@egjs/react-view360/css/view360.min.css";
export default function SinglePost(props) {
const Viewer = () => { const projection = useMemo(() => new EquirectProjection({ src: (props.video_path && urlVid) || (props.image_path && urlImg), video: (props.video_path && true) || (props.image_path && false), }), []);
return <View360 projection={projection} className="is-16by9"/>
} return (
{urlVid && props.gallery_post === undefined && props.three_sixty_posts === "vid360" ? ( <Viewer/> ) : null} </div> </main> </div>
); }`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This package merely does not work with Nextjs. I get a blank image.
`import React, { useState, useEffect, useMemo } from "react";
import View360, { EquirectProjection } from "@egjs/react-view360";
import "@egjs/react-view360/css/view360.min.css";
export default function SinglePost(props) {
const Viewer = () => {
const projection = useMemo(() => new EquirectProjection({
src: (props.video_path && urlVid) || (props.image_path && urlImg),
video: (props.video_path && true) || (props.image_path && false),
}), []);
}
return (
<main className={isDesktopOrLaptop && styles.main || !isDesktopOrLaptop && 'col-12'}>
<div className={isDesktopOrLaptop && styles.postCard || !isDesktopOrLaptop && 'col-12'}>
{urlImg && props.gallery_post === undefined && props.three_sixty_posts === "img360" ? (
) : null}
);
}`
The text was updated successfully, but these errors were encountered: