Closed adesege closed 1 month ago
@adesege thanks for the PR. Can you please specify the issue you're having that is motivating the PR? As you can see here, a ref can be passed to ReadiumView
without issue.
@adesege thanks for the PR. Can you please specify the issue you're having that is motivating the PR? As you can see here, a ref can be passed to
ReadiumView
without issue.
It works on web because the ReadiumView.web.tsx uses forwardRef. However, on Android, it returns an error because ReadiumView.tsx is not wrapped with forwardRef.
Going to close this one as there's a newer PR that attempts to address this same issue.
ReadiumView component is not wrapped with forwardRef which causes React to error out that ref cannot be passed to functional components.
This PR fixes that.