Skip to content

Commit

Permalink
Merge pull request #7222 from parasharrajat/storybook
Browse files Browse the repository at this point in the history
fix: Stories rendering issues
  • Loading branch information
mountiny authored Jan 14, 2022
2 parents ca085ae + 80c15b0 commit de8d439
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -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 => (
<ComposeProviders
components={[
OnyxProvider,
LocaleContextProvider,
]}
>
<Story />
</ComposeProviders>
),
];

export {
// eslint-disable-next-line import/prefer-default-export
decorators,
};

0 comments on commit de8d439

Please sign in to comment.