mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-30 21:31:40 +08:00
24 lines
562 B
JavaScript
24 lines
562 B
JavaScript
import { setOptions } from '@storybook/addon-options';
|
|
import centered from './decorator-centered';
|
|
import { configure, addDecorator } from '@storybook/react';
|
|
|
|
const context = require.context('../', true, /Screen\.js$/);
|
|
|
|
addDecorator(centered);
|
|
|
|
setOptions({
|
|
name: 'React Native Web',
|
|
url: 'https://necolas.github.io/react-native-web',
|
|
goFullScreen: false,
|
|
showLeftPanel: true,
|
|
showDownPanel: false,
|
|
showSearchBox: false,
|
|
downPanelInRight: false
|
|
});
|
|
|
|
function loadStories() {
|
|
context.keys().forEach(context);
|
|
}
|
|
|
|
configure(loadStories, module);
|