diff --git a/app/react-native/src/preview/index.js b/app/react-native/src/preview/index.js index 3ba9518d8939..742945492120 100644 --- a/app/react-native/src/preview/index.js +++ b/app/react-native/src/preview/index.js @@ -15,7 +15,8 @@ export default class Preview { this._addons = {}; this._decorators = []; this._events = new EventEmitter(); - this._clientApi = new ClientApi({ storyStore: new StoryStore() }); + this._stories = new StoryStore(); + this._clientApi = new ClientApi({ storyStore: this._stories }); ['storiesOf', 'setAddon', 'addDecorator', 'clearDecorators', 'getStorybook'].forEach(method => { this[method] = this._clientApi[method].bind(this._clientApi);