Closed oliviercperrier closed 4 months ago
This seems like a react-native-web issue with flatlist. Try updating to rnw 0.19.10
Also the native storybook doesn't work as well on web so thats why we have the storybook:web script to run addon-react-native-web.
By the way you need to wrap text in the Text component
@dannyhw Thanks for the reply, i tried react-native-web latest but no luck. Yup i prefer the output with storybook:web but my problem is that nativewind css classes are removed for some reasons when running that storybook script.
What version of nativewind?
@dannyhw I use @4.0.1
try adding this babel plugin to your @storybook/addon-react-native-web
addon config like in this comment:
https://github.com/storybookjs/addon-react-native-web/pull/81#issuecomment-1890289454
[
'@babel/plugin-transform-react-jsx',
{
runtime: 'automatic',
importSource: 'nativewind',
},
],
try adding this babel plugin to your
@storybook/addon-react-native-web
addon config
@oliviercperrier did this solved your issue?
Fixed on nativewinds side in the latest v4 version
Describe the bug Since i upgraded my storybook, i get the following error only when running my react native storybook on web.
To Reproduce
i created my project with: npx create-expo-app --template expo-template-storybook AwesomeStorybook
And here is my updated
package.json
:I saw that for some reason,
columnWrapperStyle
is set with an empty array by default. same for other props, but i set none of these props with any value:Here is my component:
Expected behavior No error
Screenshots
System: Please paste the results of
npx -p @storybook/cli@next sb info
here.