Open ShaneKeney opened 2 weeks ago
Generally this shouldn't be an issue but another person using nativewind 4 mentioned a similar thing.
https://github.com/storybookjs/react-native/issues/576
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
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?