sticky-parallax-header icon indicating copy to clipboard operation
sticky-parallax-header copied to clipboard

TypeError: Cannot assign to read-only property 'current' on pagerProps ref

Open bahinapster opened this issue 1 year ago • 0 comments

Environment

Library version: 1.1.1

Affected platforms

  • [X] Android
  • [ ] iOS

Current behavior

When I pass a ref to the pager props. I'm getting this error: TypeError: Cannot assign to read-only property 'current. The platform tested is android, but I believe it would be the same in iOS too.

Expected behavior

i excpect to get the pager ref in order to use goToPage method.

Reproduction

to reproduce you can take any sample and pass a ref to pager props.

const pagerRef = useRef(null);

pagerProps={{

                ref: pagerRef,

}}

bahinapster avatar Jul 29 '24 12:07 bahinapster