react-comic-viewer is comic viewer for react.
- SSR support
- TypeScript support
npm i --save react-comic-viewer
import React from "react";
import ComicViewer from "react-comic-viewer";
function App() {
return (
<ComicViewer pages={["hoge.png", "fuga.jpg", "piyo.jpg", "moge.jpg"]} />
);
}
export default App;
Return | Type | Required |
---|---|---|
className | Object | |
direction | String | |
initialCurrentPage | Number | |
initialIsExpansion | Boolean | |
onChangeCurrentPage | Function | |
onChangeExpansion | Function | |
onClickCenter | Function | |
pages | Array | ✓ |
switchingRatio | Number | |
text | Object |
Full Screen API does not support iOS.
Therefore, the full screen button is not displayed on iOS.