diff --git a/index.d.ts b/index.d.ts index ac48a0e1..571c2aba 100644 --- a/index.d.ts +++ b/index.d.ts @@ -45,6 +45,7 @@ interface Props { } declare class Pdf extends React.Component { + setPage: (pageNumber: number) => void; } export default Pdf; diff --git a/index.js.flow b/index.js.flow index 1957e5f3..148edcd8 100644 --- a/index.js.flow +++ b/index.js.flow @@ -58,4 +58,6 @@ export type Props = { testID?: string }; -declare export default class Pdf extends Component {} +declare export default class Pdf extends Component { + setPage: (pageNumber: number) => void; +}