Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 2 tasks
bahinapster opened this issue Jul 29, 2024 · 0 comments
Open
1 of 2 tasks
Assignees
Labels
bug Something isn't working

Comments

@bahinapster
Copy link

Environment

Library version: 1.1.1

Affected platforms

  • 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 bahinapster added the bug Something isn't working label Jul 29, 2024
@TheNerdGuyLulu TheNerdGuyLulu self-assigned this Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants