Storybook, our React tool from the Simplifying component development with Storybook section of Chapter 6, Developing with React, can also be used to help with the development of components, so in this recipe, let's look at how to use it in order to simplify our work.
Using Storybook to preview components
Getting ready
Installing Storybook is simple, and similar to what we did before; the react-native-storybook-loader package will let us place our *.story.js files wherever we want, and find them anyway. The second command will take a while, installing many packages; be warned! Also, a storybook directory will be created, at the root of your directory. Install Storybook with the following command:
npm install @storybook...