@whatmore-repo/whatmore-reactnative-sdk 1.0.31 → 1.0.33

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@whatmore-repo/whatmore-reactnative-sdk",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "",
5
5
  "private": false,
6
6
  "main": "index.js",
@@ -29,6 +29,8 @@ export async function navigateToProductPage(product, brandDomainContext, whatmor
29
29
  else {
30
30
  const parts = product?.product_link?.split('/');
31
31
  const sku = parts?.[parts?.length - 1];
32
+ if(!sku)
33
+ return;
32
34
  navigation.navigate(
33
35
  'ProductDetail',
34
36
  {url: sku}
@@ -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 safeAreaViewHeight = customStyles?.showProductDetails ? 100 : 50;
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