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
Describe the bug
Passing a component as a prop causes the app to become unresponsive. See example below. I commented out the prop that has a component passed in and it worked fine.
Expected behavior
I would expect to be able to pass a component as a prop into the Storybook story created for that specific component UI representation the same way I can pass it into the component normally.
I recall having ran into this with a nativewind project. Nativewind 4 uses a babel transform within the react-native-css-interop that wraps some rn components so that it may support css properties. React elements coming from those however had cyclic issues that made storybook hang when serializing them.
Though not an ideal solution, I just transitioned to twrnc instead of nativewind.
Describe the bug
Passing a component as a prop causes the app to become unresponsive. See example below. I commented out the prop that has a component passed in and it worked fine.
To Reproduce
ProductCard
implementation for reference:Expected behavior
I would expect to be able to pass a component as a prop into the Storybook story created for that specific component UI representation the same way I can pass it into the component normally.
Code snippets
See above.
System:
Additional context
Is there a better or alternative way to approach mocking out this type of component using Storybook?
The text was updated successfully, but these errors were encountered: