mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-29 21:04:53 +08:00
Initial setup of react-storybook. Includes examples copied from the React Native repository. Close #148
13 lines
284 B
JavaScript
13 lines
284 B
JavaScript
import { configure, addDecorator } from '@kadira/storybook'
|
|
import centered from './decorator-centered'
|
|
|
|
const context = require.context('../', true, /Example\.js$/)
|
|
|
|
addDecorator(centered)
|
|
|
|
function loadStories() {
|
|
context.keys().forEach(context)
|
|
}
|
|
|
|
configure(loadStories, module)
|