diff --git a/src/preview/components/StoryView/index.js b/src/preview/components/StoryView/index.js index e6a51f76c41b..89454e6a1dc5 100644 --- a/src/preview/components/StoryView/index.js +++ b/src/preview/components/StoryView/index.js @@ -1,4 +1,6 @@ import React, { Component } from 'react'; +import { View } from 'react-native'; +import style from './style'; export default class StoryView extends Component { constructor(props, ...args) { @@ -17,6 +19,10 @@ export default class StoryView extends Component { } const { kind, story } = this.state.selection; const context = { kind, story }; - return this.state.storyFn(context); + return ( + + {this.state.storyFn(context)} + + ); } } diff --git a/src/preview/components/StoryView/style.js b/src/preview/components/StoryView/style.js new file mode 100644 index 000000000000..61b48b75a311 --- /dev/null +++ b/src/preview/components/StoryView/style.js @@ -0,0 +1,5 @@ +export default { + main: { + flex: 1, + }, +};