@applicaster/zapp-react-native-ui-components 12.0.0-rc.20 → 12.0.0-rc.21

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.
@@ -50,13 +50,17 @@ export const CollapsibleTextContainer = ({
50
50
  func: (data) => {
51
51
  const value = getValue("background_color");
52
52
 
53
- // check if value is a reference to an extension
54
- if (value.startsWith("extensions")) {
55
- return pathOr(value, value.split("."), data);
56
- } else {
57
- // return default value
58
- return additionalStyles.backgroundColor;
53
+ const valueFromData = pathOr(value, value.split("."), data);
54
+
55
+ if (
56
+ valueFromData &&
57
+ (valueFromData.startsWith("#") || valueFromData.startsWith("rgba("))
58
+ ) {
59
+ return valueFromData;
59
60
  }
61
+
62
+ // return default value
63
+ return additionalStyles.backgroundColor;
60
64
  },
61
65
  propName: "backgroundColor",
62
66
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "12.0.0-rc.20",
3
+ "version": "12.0.0-rc.21",
4
4
  "description": "Applicaster Zapp React Native ui components for the Quick Brick App",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -34,10 +34,10 @@
34
34
  "redux-mock-store": "^1.5.3"
35
35
  },
36
36
  "dependencies": {
37
- "@applicaster/applicaster-types": "12.0.0-rc.20",
38
- "@applicaster/zapp-react-native-bridge": "12.0.0-rc.20",
39
- "@applicaster/zapp-react-native-redux": "12.0.0-rc.20",
40
- "@applicaster/zapp-react-native-utils": "12.0.0-rc.20",
37
+ "@applicaster/applicaster-types": "12.0.0-rc.21",
38
+ "@applicaster/zapp-react-native-bridge": "12.0.0-rc.21",
39
+ "@applicaster/zapp-react-native-redux": "12.0.0-rc.21",
40
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.21",
41
41
  "promise": "^8.3.0",
42
42
  "react-router-native": "^5.1.2",
43
43
  "url": "^0.11.0",