You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we used react 18.3.1 it was working without any errors, but now after upgrading react 18.3.1 to react 19.0.0, we are getting this error: Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release..
When I run the App without storybook, it works without showing that error, so I am 100% sure it is coming form one of the storybook libraries.
Any Idea how can this be fixed now?
if there is no temporary solution, when will storybook react native support react 19?
The text was updated successfully, but these errors were encountered:
@MJanOthman this seems like a warning not an error, it should be ignorable as a workaround for now.
I'm not sure how we would resolve this and have things still work for react 18 so I need to think about this a bit.
I will setup an example to debug this, I will need some time to investigate further.
dannyhw
changed the title
Storybook React native with react 19 throw an error
Storybook React native with react 19 show a warning about refs
Feb 24, 2025
dannyhw
changed the title
Storybook React native with react 19 show a warning about refs
When using react 19 a warning is shown about element.ref being removed
Feb 24, 2025
Describe the bug
We have a UI Library where we use:
When we used
react 18.3.1
it was working without any errors, but now after upgradingreact 18.3.1
toreact 19.0.0
, we are getting this error:Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.
.When I run the App without storybook, it works without showing that error, so I am 100% sure it is coming form one of the storybook libraries.
Any Idea how can this be fixed now?
if there is no temporary solution, when will storybook react native support
react 19
?The text was updated successfully, but these errors were encountered: