barteksc / AndroidPdfViewerV1

Android view for displaying PDFs rendered with PdfiumAndroid
Apache License 2.0
73 stars 31 forks source link

onRender problem: Type mismatch: inferred type is (Int, Any?, Any?) -> Unit but ((Int) -> Unit)! was expected #23

Open simona114 opened 1 year ago

simona114 commented 1 year ago

Trying to do .onRender { _, _, _ -> pdfView.fitToWidth() } and I get the error "Type mismatch: inferred type is (Int, Any?, Any?) -> Unit but ((Int) -> Unit)! was expected"