-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
28 lines (26 loc) · 928 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// .storybook/main.js
const path = require('path');
module.exports = {
stories: ['../src/**/*.stories.?(ts|tsx|js|jsx)', '../storybook/web/*.stories.?(ts|tsx|js|jsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-react-native-web',
'storybook-addon-designs',
],
framework: '@storybook/react',
webpackFinal: async (config) => ({
...config,
resolve: {
...(config.resolve || {}),
alias: {
'react-native$': 'react-native-web',
'../Utilities/Platform': 'react-native-web/src/exports/Platform',
'../../Utilities/Platform': 'react-native-web/src/exports/Platform',
'@react-native-community/blur': '/storybook/modules/blur',
'@procivis/react-native-picker': 'react-native-web/src/exports/View',
'react-native-vision-camera': '/storybook/modules/react-native-vision-camera',
},
},
}),
};