@eohjsc/react-native-smart-city 0.3.83 → 0.3.84
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.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eohjsc/react-native-smart-city",
|
|
3
3
|
"title": "React Native Smart Home",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.84",
|
|
5
5
|
"description": "TODO",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"files": [
|
|
@@ -179,7 +179,6 @@
|
|
|
179
179
|
"react-native-maps-directions": "^1.8.0",
|
|
180
180
|
"react-native-modal": "^11.5.6",
|
|
181
181
|
"react-native-modal-datetime-picker": "^8.9.3",
|
|
182
|
-
"react-native-new-snap-carousel": "^3.9.3",
|
|
183
182
|
"react-native-onesignal": "^4.3.1",
|
|
184
183
|
"react-native-pager-view": "^5.4.1",
|
|
185
184
|
"react-native-parallax-scroll-view": "^0.21.3",
|
|
@@ -191,6 +190,7 @@
|
|
|
191
190
|
"react-native-responsive-fontsize": "^0.5.1",
|
|
192
191
|
"react-native-safe-area-context": "^3.1.1",
|
|
193
192
|
"react-native-screens": "^2.9.0",
|
|
193
|
+
"react-native-snap-carousel": "4.0.0-beta.5",
|
|
194
194
|
"react-native-super-grid": "^4.0.3",
|
|
195
195
|
"react-native-svg": "^12.1.0",
|
|
196
196
|
"react-native-toast-message": "^2.1.1",
|
|
@@ -55,16 +55,23 @@ export const SensorDisplayItem = ({
|
|
|
55
55
|
const data = item.configuration.configs.map((config) => {
|
|
56
56
|
const configValue = configValues[config.id]?.value;
|
|
57
57
|
const configEvaluate = evaluate[config.id] || {};
|
|
58
|
+
let value = {};
|
|
58
59
|
if (configValue === null || configValue === undefined) {
|
|
59
|
-
|
|
60
|
+
value = {
|
|
61
|
+
id: config.id,
|
|
62
|
+
value: null,
|
|
63
|
+
evaluate: null,
|
|
64
|
+
};
|
|
65
|
+
} else {
|
|
66
|
+
value = {
|
|
67
|
+
id: config.id,
|
|
68
|
+
value: configValue,
|
|
69
|
+
evaluate: evaluateValue(config.id, configValue) || configEvaluate,
|
|
70
|
+
};
|
|
60
71
|
}
|
|
61
|
-
const value = {
|
|
62
|
-
id: config.id,
|
|
63
|
-
value: configValue,
|
|
64
|
-
evaluate: evaluateValue(config.id, configValue) || configEvaluate,
|
|
65
|
-
};
|
|
66
72
|
return { ...config, ...value };
|
|
67
73
|
});
|
|
74
|
+
|
|
68
75
|
return data.filter(Boolean);
|
|
69
76
|
}, [configValues, evaluateValue, item, evaluate]);
|
|
70
77
|
|