Skip to content

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

@bahinapster

Description

@bahinapster

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,

}}

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions