react-comic-viewer is comic viewer for react.
npm install @azu/react-comic-viewerreact-comic-viewer is comic viewer for react.
- TypeScript support
npm i --save react-comic-viewer
``tsx
import React from "react";
import ComicViewer from "react-comic-viewer";
function App() {
return (
);
}
export default App;
``
| Key | Type | Description | default |
| --------------- | ----------------------------------------------------------------------------- | ------------------------------ | ------------------------------------------------------------------------------------- |
| pages | Array
| switchingRatio? | number | Ratio to switch to single page | 1 |
| text? | Record<"expansion" | "fullScreen" | "move" | "normal", string> | Text displayed | { expansion: "Expansion", fullScreen: "Full screen", move: "Move", normal: "Normal" } |