react-viewer
react-viewer copied to clipboard
Support for SSR
Hi author ,
When do we will release 4.x ?
Thanks !
It will be released when Mobile is supported
I use NextJS - there are no problems, an example of my code
import React, { FC } from 'react'
import dynamic from 'next/dynamic'
const Viewer = dynamic(
() => import('react-viewer'),
{ ssr: false }
)
export const Gallery: FC = () => {
return (
<Viewer
visible={true}
onClose={() => {}}
images={[{src: ''}]}
/>
)
}
export default Gallery