From 80c15b0b2574b606e1d9af09284e88464b687ba4 Mon Sep 17 00:00:00 2001 From: Rajat Parashar Date: Fri, 14 Jan 2022 18:40:46 +0530 Subject: [PATCH] fix: Stories rendering issues --- .storybook/preview.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.storybook/preview.js b/.storybook/preview.js index c236a64fcfac..835171bd408d 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -1 +1,29 @@ +import React from 'react'; +import Onyx from 'react-native-onyx'; import '../assets/css/fonts.css'; +import ComposeProviders from '../src/components/ComposeProviders'; +import OnyxProvider from '../src/components/OnyxProvider'; +import {LocaleContextProvider} from '../src/components/withLocalize'; +import ONYXKEYS from '../src/ONYXKEYS'; + +Onyx.init({ + keys: ONYXKEYS, +}); + +const decorators = [ + Story => ( + + + + ), +]; + +export { + // eslint-disable-next-line import/prefer-default-export + decorators, +};