@evlop/native-components 1.0.150 → 1.0.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const RenderComponent: ({ dataModel, model, type, componentId, uuid, data: layoutComponentData, children }: {
|
|
2
|
+
export declare const RenderComponent: ({ insideScrollview, dataModel, model, type, componentId, uuid, data: layoutComponentData, children }: {
|
|
3
|
+
insideScrollview?: boolean;
|
|
3
4
|
dataModel?: any;
|
|
4
5
|
model?: any;
|
|
5
6
|
type?: any;
|
|
@@ -8,7 +9,8 @@ export declare const RenderComponent: ({ dataModel, model, type, componentId, uu
|
|
|
8
9
|
data: any;
|
|
9
10
|
children?: any;
|
|
10
11
|
}) => JSX.Element;
|
|
11
|
-
export declare const Component: React.MemoExoticComponent<({ dataModel, model, type, componentId, uuid, data: layoutComponentData, children }: {
|
|
12
|
+
export declare const Component: React.MemoExoticComponent<({ insideScrollview, dataModel, model, type, componentId, uuid, data: layoutComponentData, children }: {
|
|
13
|
+
insideScrollview?: boolean;
|
|
12
14
|
dataModel?: any;
|
|
13
15
|
model?: any;
|
|
14
16
|
type?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/RenderComponent/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAO1D,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/RenderComponent/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAO1D,eAAO,MAAM,eAAe;;;;;;;;;iBAwE3B,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;kBAA8B,CAAC;AAErD,eAAe,SAAS,CAAC"}
|
|
@@ -34,7 +34,7 @@ const react_native_1 = require("react-native");
|
|
|
34
34
|
const react_redux_1 = require("react-redux");
|
|
35
35
|
const ErrorBoundry_1 = __importDefault(require("../ErrorBoundry"));
|
|
36
36
|
const View_1 = __importStar(require("../View"));
|
|
37
|
-
const RenderComponent = ({ dataModel = null, model = dataModel, type = null, componentId = type, uuid = null, data: layoutComponentData, children = null }) => {
|
|
37
|
+
const RenderComponent = ({ insideScrollview = false, dataModel = null, model = dataModel, type = null, componentId = type, uuid = null, data: layoutComponentData, children = null }) => {
|
|
38
38
|
const { data: parentComponentData } = (0, commons_1.useComponentData)();
|
|
39
39
|
const data = (0, react_1.useMemo)(() => model ? (0, lodash_1.get)(parentComponentData, model) : layoutComponentData, [model, parentComponentData, layoutComponentData]);
|
|
40
40
|
const { components, list } = (0, react_redux_1.useSelector)((s) => s.components);
|
|
@@ -76,6 +76,8 @@ const RenderComponent = ({ dataModel = null, model = dataModel, type = null, com
|
|
|
76
76
|
const renderedComponent = (0, react_1.useMemo)(() => (react_1.default.createElement(ErrorBoundry_1.default, { ref: errorBoundryRef },
|
|
77
77
|
react_1.default.createElement(commons_1.ComponentProvider, { value: contextData },
|
|
78
78
|
react_1.default.createElement(PreviewComponent, Object.assign({}, componentData), children)))), [children, contextData, componentData]);
|
|
79
|
+
if (!insideScrollview)
|
|
80
|
+
return renderedComponent;
|
|
79
81
|
return (react_1.default.createElement(View_1.BaseView, { ref: viewRef, opacity: data === null || data === void 0 ? void 0 : data.__opacity, backgroundColor: data === null || data === void 0 ? void 0 : data.__backgroundColor }, renderedComponent));
|
|
80
82
|
};
|
|
81
83
|
exports.RenderComponent = RenderComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/RenderComponent/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA8G;AAC9G,mCAA6B;AAC7B,+CAA0D;AAC1D,+CAAoD;AACpD,6CAAuD;AACvD,mEAA2C;AAC3C,gDAAyC;AAGlC,MAAM,eA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