-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathindex.ts
More file actions
31 lines (29 loc) · 782 Bytes
/
index.ts
File metadata and controls
31 lines (29 loc) · 782 Bytes
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
import { JsxWidget } from "@web-builder/core";
import {
react as react_config,
reactnative as reactnative_config,
} from "@grida/builder-config";
import {
ReactNativeInlineStyleBuilder,
ReactNativeInlineStyleWidgetModuleExportable,
} from "./rn-inline-style-module-builder";
export default function finalizeReactNativeWidget_InlineStyle(
entry: JsxWidget,
{
styling,
exporting,
}: {
styling: reactnative_config.ReactNativeInlineStyleConfig;
exporting: react_config.ReactComponentExportingCofnig;
}
) {
const builder = new ReactNativeInlineStyleBuilder({
entry,
config: styling,
});
return builder.asExportableModule().finalize(exporting);
}
export {
ReactNativeInlineStyleBuilder,
ReactNativeInlineStyleWidgetModuleExportable,
};