mirror of
https://github.com/zhigang1992/examples.git
synced 2026-04-30 02:16:13 +08:00
Update with-storybook/README.md
This commit is contained in:
@@ -25,7 +25,7 @@ This method runs your Expo components in a Storybook-React environment. This is
|
|||||||
- You can use any template, we'll use the managed blank TypeScript project for this example.
|
- You can use any template, we'll use the managed blank TypeScript project for this example.
|
||||||
- `cd` into the project and run `npx -p @storybook/cli sb init --type react` to bootstrap a new React project
|
- `cd` into the project and run `npx -p @storybook/cli sb init --type react` to bootstrap a new React project
|
||||||
- Install the expo webpack config so we can add unimodules support `yarn add -D @expo/webpack-config`
|
- Install the expo webpack config so we can add unimodules support `yarn add -D @expo/webpack-config`
|
||||||
- Create a [custom webpack config](/with-storybook/.storybook/webpack.config.js) `touch .storybook/webpack.config.js`
|
- Create a [custom webpack config](./.storybook/webpack.config.js) `touch .storybook/webpack.config.js`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const { resolve } = require("path");
|
const { resolve } = require("path");
|
||||||
|
|||||||
Reference in New Issue
Block a user