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
Cannot use Button as child of Link. #3899
Labels
Comments
Facing the same issue |
This is because of the component not using |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Explain what you did
When using a Button with expo-router's
<Link/> component with
asChild` property, I get the following error.Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Expected behavior
This should not happen, and should work out of box, just like in a case of other libraries.
Describe the bug
The Link and button are both working as intended, but errors are throwed to console. It works as it should with vanilla (imported from
react-native
package) component.Steps To Reproduce
Screenshots
Your Environment
`npx @rneui/envinfo`
Global Dependencies:
No related dependency found
Local Dependencies:
The text was updated successfully, but these errors were encountered: