forked from commaai/comma-x-native
-
Notifications
You must be signed in to change notification settings - Fork 1
/
X.js
46 lines (40 loc) · 1.32 KB
/
X.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
40
41
42
43
44
45
46
/*
comma x native
~~~~~~~~~~~~~~~
UI library for react-native
:copyright: (c) 2018, comma.ai
:license: See LICENSE for more details
:source: https://github.com/commaai/comma-x-native
*/
import _ from 'lodash';
import BaseTheme from './x/themes/Base';
import Button from './x/components/Button';
import Gradient from './x/components/Gradient';
import Image from './x/components/Image';
import Text from './x/components/Text';
import Line from './x/components/Line';
import Avatar from './x/components/Avatar';
import StatusBar from './x/components/StatusBar';
import Entrance from './x/components/Entrance';
import CheckboxField from './x/components/CheckboxField';
import RadioField from './x/components/RadioField';
import Table from './x/components/Table';
import TableCell from './x/components/TableCell';
export default function X(THEME) {
const theme = _.merge(BaseTheme, THEME);
return {
theme: theme,
Button: Button(theme),
Text: Text(theme),
Line: Line(theme),
Avatar: Avatar(theme),
StatusBar: StatusBar(theme),
Gradient: Gradient(theme),
Entrance: Entrance(theme),
CheckboxField: CheckboxField(theme),
RadioField: RadioField(theme),
Table: Table(theme),
TableCell: TableCell(theme),
Image,
}
}