forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
preview.js
39 lines (35 loc) · 889 Bytes
/
preview.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import React from 'react';
import Onyx from 'react-native-onyx';
import '../assets/css/fonts.css';
import ComposeProviders from '../src/components/ComposeProviders';
import HTMLEngineProvider from '../src/components/HTMLEngineProvider';
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,
HTMLEngineProvider,
]}
>
<Story />
</ComposeProviders>
),
];
const parameters = {
controls: {
matchers: {
color: /(background|color)$/i,
},
},
};
export {
decorators,
parameters,
};