sticky-parallax-header
sticky-parallax-header copied to clipboard
TypeError: Cannot assign to read-only property 'current' on pagerProps ref
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,
}}