-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update minor dependencies * update storybook version * update some dependencies
- Loading branch information
1 parent
84fa4d0
commit 802caba
Showing
4 changed files
with
1,744 additions
and
3,086 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
// Learn more https://docs.expo.io/guides/customizing-metro | ||
// eslint-disable-next-line | ||
const { getDefaultConfig } = require('expo/metro-config'); | ||
const path = require('path'); // eslint-disable-line @typescript-eslint/no-var-requires | ||
const { getDefaultConfig } = require('expo/metro-config'); // eslint-disable-line @typescript-eslint/no-var-requires | ||
const withStorybook = require('@storybook/react-native/metro/withStorybook'); // eslint-disable-line @typescript-eslint/no-var-requires | ||
|
||
/** @type {import('expo/metro-config').MetroConfig} */ | ||
const config = getDefaultConfig(__dirname); | ||
|
||
module.exports = config; | ||
module.exports = withStorybook(config, { | ||
// Set to false to remove storybook specific options | ||
// you can also use a env variable to set this | ||
enabled: true, | ||
// Path to your storybook config | ||
configPath: path.resolve(__dirname, './.storybook'), | ||
|
||
// Optional websockets configuration | ||
// Starts a websocket server on the specified port and host on metro start | ||
// websockets: { | ||
// port: 7007, | ||
// host: 'localhost', | ||
// }, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.