@whatmore-repo/whatmore-reactnative-sdk 1.0.29 → 1.0.30

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.29",
3
+ "version": "1.0.30",
4
4
  "description": "",
5
5
  "private": false,
6
6
  "main": "index.js",
@@ -1,8 +1,6 @@
1
1
  import * as React from 'react';
2
- import { Dimensions, Modal, View } from "react-native";
3
- import AppVideoPlayer from './video-player/AppVideoPlayer.js'
2
+ import { Modal, View } from "react-native";
4
3
  import Swiper from 'react-native-swiper'
5
- import { InView } from 'react-native-intersection-observer'
6
4
  import EventShoppingView from './EventShoppingView.js';
7
5
  import { setGlobalState } from '../globals/useAppState_APP.js';
8
6
 
@@ -18,6 +16,7 @@ export default function EventsVerticalSwipeView(props) {
18
16
  animationType="slide"
19
17
  transparent={false}
20
18
  visible={props.isModalOpen}
19
+ onRequestClose={()=>props.setIsModalOpen(false)}
21
20
  >
22
21
  <Swiper
23
22
  style={{}}
@@ -34,8 +34,7 @@ export default function WhatmoreRootComponent(props) {
34
34
  var brandId = props.shopId;
35
35
  const [data, setData] = useState();
36
36
  const [error, setError] = useState();
37
- const isInstaReelView = ["27358003275", "STR60LW4WMA"];
38
- const [isModalOpen, setIsModalOpen] = useState(!isInstaReelView.includes(brandId));
37
+ const [isModalOpen, setIsModalOpen] = useState(false);
39
38
  const [initialEventIndex, setInitialEventIndex] = useState(0)
40
39
 
41
40
  var eventStatuses = "live,upcoming";
@@ -89,7 +88,7 @@ export default function WhatmoreRootComponent(props) {
89
88
 
90
89
  return (
91
90
  <>
92
- {isInstaReelView.includes(brandId) && <EventTileWithProduct customStyles={props.customStyles} isModalOpen={isModalOpen} setIsModalOpen={setIsModalOpen} events={data} setInitialEventIndex={setInitialEventIndex} />}
91
+ {<EventTileWithProduct customStyles={props.customStyles} isModalOpen={isModalOpen} setIsModalOpen={setIsModalOpen} events={data} setInitialEventIndex={setInitialEventIndex} />}
93
92
  {(isModalOpen) && <EventClickComponent isModalOpen={isModalOpen} setIsModalOpen={setIsModalOpen} events={data} initialEventIndex={initialEventIndex} onAction={props.onAction} /> }
94
93
  </>
95
94
  );