@whatmore-repo/whatmore-reactnative-sdk 1.0.32 → 1.0.34
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
|
@@ -14,7 +14,8 @@ export default function EventTileWithProduct(props) {
|
|
|
14
14
|
const customStyles= getGlobalState('customStyles');
|
|
15
15
|
const ITEM_WIDTH = width * 0.33;
|
|
16
16
|
const CARD_HEIGHT = 40 * (customStyles?.videoTileSize ?? 5.5);
|
|
17
|
-
const
|
|
17
|
+
const appMarginBottom = customStyles?.widgetMarginBottom ?? 50
|
|
18
|
+
const safeAreaViewHeight = customStyles?.showProductDetails ? 50 + (appMarginBottom) : (appMarginBottom);
|
|
18
19
|
const brandThemeColor = customStyles?.brandThemeColor;
|
|
19
20
|
// const brandThemeFont = customStyles?.brandThemeFont;
|
|
20
21
|
|
|
@@ -132,7 +133,7 @@ export default function EventTileWithProduct(props) {
|
|
|
132
133
|
}
|
|
133
134
|
</View>
|
|
134
135
|
|
|
135
|
-
{!isNaN(calculatedDiscount) && calculatedDiscount != 0 &&
|
|
136
|
+
{customStyles?.showDiscountLabel && !isNaN(calculatedDiscount) && calculatedDiscount != 0 &&
|
|
136
137
|
<View style={{
|
|
137
138
|
alignSelf: 'flex-start',
|
|
138
139
|
backgroundColor: brandThemeColor ?? 'green',
|