Skip to content

Commit

Permalink
docs: Remove util and util-deprecate from the v6README (storybookjs#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
lauriharpf authored Jul 28, 2021
1 parent 2bcd2fd commit bf76e81
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions v6README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Open up your react native project in your chosen editor, here I use vscode
code .
```


Now install the react native storybook dependencies, here I'm installing all the available ondevice addons. You can just pick the addons you want to use.

```shell
Expand All @@ -34,8 +33,7 @@ yarn add @storybook/react-native@next \
@storybook/addon-actions \
@react-native-community/datetimepicker \
@react-native-community/slider \
@storybook/addon-controls \
util util-deprecate
@storybook/addon-controls
```

Datetime picker, slider and addon-controls are required for controls to work. If you don't want controls you don't need to install these (controls is the knobs replacement).
Expand Down Expand Up @@ -132,6 +130,7 @@ fs.writeFile("./package.json", JSON.stringify(packageJSON, null, 2), function wr
```

If you're on macos then run pod install

```shell
cd ios; pod install; cd ..;
```
Expand Down Expand Up @@ -190,12 +189,10 @@ export const Basic: MyButtonStory = args => <MyButton {...args} />;
" > components/Button/Button.stories.tsx
```




Run the stories auto detection which uses main.js to detect stories.

```shell
yarn sbn-get-stories
```

Now run your app as normal with `yarn ios` or `yarn android`
Now run your app as normal with `yarn ios` or `yarn android`

0 comments on commit bf76e81

Please sign in to comment.