-
I do not understand how to load a |
Beta Was this translation helpful? Give feedback.
Answered by
dannyhw
Nov 30, 2021
Replies: 1 comment 1 reply
-
There is no preview js in the 5.x of storybook. Instead you use the functions like addDecorator and addParameters. For example with the backgrounds addon you can do:
you can find this example in the 5.3 example project here |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
levino
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no preview js in the 5.x of storybook. Instead you use the functions like addDecorator and addParameters.
For example with the backgrounds addon you can do:
you can find this example in the 5.3 example project here
https://github.com/storybookjs/react-native/blob/v5.3.25/examples/native/storybook/index.js