MCPcopy Index your code
hub / github.com/wonday/react-native-pdf / setPage

Function setPage

index.js:347–364  ·  view source on GitHub ↗
( pageNumber )

Source from the content-addressed store, hash-verified

345 };
346
347 setPage( pageNumber ) {
348 if ( (pageNumber === null) || (isNaN(pageNumber)) ) {
349 throw new Error('Specified pageNumber is not a number');
350 }
351 if (!!global?.nativeFabricUIManager ) {
352 if (this._root) {
353 PdfViewCommands.setNativePage(
354 this._root,
355 pageNumber,
356 );
357 }
358 } else {
359 this.setNativeProps({
360 page: pageNumber
361 });
362 }
363
364 }
365
366 _onChange = (event) => {
367

Callers

nothing calls this directly

Calls 1

setNativePageMethod · 0.65

Tested by

no test coverage detected