-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Passing a Component as Prop #583
Comments
Generally this shouldn't be an issue but another person using nativewind 4 mentioned a similar thing. One way you can get around it is by using a mapping Though i wasn't able to reproduce this so it would be great if you could provide a minimal reproduction of the issue. |
Heres an example nativewind 4 project where i tried to reproduce this issue but wasn't able to |
I recall having ran into this with a nativewind project. Nativewind 4 uses a babel transform within the Though not an ideal solution, I just transitioned to twrnc instead of nativewind. |
Just now I got this issue with tamagui starter repo using expo with react native and run storybook in it. The story made storybook hangs at splash screen after compiling. Same issue and behavior as : #576 (comment) the component works when hot reloading, but error when restarting the server |
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: