Giter Club home page Giter Club logo

Comments (9)

lunacd avatar lunacd commented on August 30, 2024

Yes I'm facing the same issue. I think all attributes except height and width should be marked optional in TS.

from react-pageflip.

pixelsage avatar pixelsage commented on August 30, 2024

Having the same issue.

from react-pageflip.

 avatar commented on August 30, 2024

Having the same issue x3

from react-pageflip.

aftabq avatar aftabq commented on August 30, 2024

Simplest fix for me was to add ts-ignore

import HTMLFlipBook from 'react-pageflip';

const SampleReportFlip = () => {

// @ts-ignore
return    (<HTMLFlipBook width={300} height={500}>
<div className="demoPage">Page 1</div>
<div className="demoPage">Page 2</div>
<div className="demoPage">Page 3</div>
<div className="demoPage">Page 4</div>
</HTMLFlipBook>)
}

export default SampleReportFlip;

from react-pageflip.

ramorris3 avatar ramorris3 commented on August 30, 2024

same issue x4. Will use @ts-ignore for now, but this isn't desirable for obvious reasons...

from react-pageflip.

YoonJeongLulu avatar YoonJeongLulu commented on August 30, 2024

How can I use this library using typescript? ..

from react-pageflip.

emmajane1313 avatar emmajane1313 commented on August 30, 2024

same issue..

from react-pageflip.

roman-kolodiy avatar roman-kolodiy commented on August 30, 2024

Same issue. Provided all attr manually. +1 for all attributes except height and width should be marked optional in TS.

from react-pageflip.

tia-aif avatar tia-aif commented on August 30, 2024

i fixed it by add like this
<HTMLFlipBook
style={{}}
// children={{}}
startPage={0}
width={300}
height={500}
drawShadow={true}
flippingTime={10}
usePortrait={false}
startZIndex={0}
autoSize={false}
clickEventForward={false}
useMouseEvents={false}
swipeDistance={0}
showPageCorners={false}
disableFlipByClick={false}
size="stretch"
minWidth={315}
maxWidth={1000}
minHeight={400}
maxHeight={1533}
maxShadowOpacity={0.5}
showCover={true}
mobileScrollSupport={true}
onFlip={()=>{}}
onChangeOrientation={()=>{}}
onChangeState={()=>{}}
className="demo-book"
>

Page 1

Page 2

Page 3

Page 4

from react-pageflip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.