@applicaster/zapp-react-native-ui-components 12.0.7-rc.3 → 12.0.8-alpha.1554380886

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.
@@ -12,6 +12,7 @@ type TrackedViewProps = {
12
12
  onPositionUpdated: (props: { rect?: Record<string, number> }) => void;
13
13
  testId?: string | undefined;
14
14
  groupId?: string;
15
+ clipThreshold?: number;
15
16
  };
16
17
 
17
18
  export const TrackedView = memo(function TrackedView(props: TrackedViewProps) {
@@ -32,6 +32,9 @@ const { log_error, log_debug } = loggerLiveImageComponent;
32
32
  const isMeasurement = (item: ZappEntry) =>
33
33
  isString(item.id) && item.id.startsWith("pre-measurement-");
34
34
 
35
+ // Pixels by which the view can slightly extend outside the viewport and still be considered fully visible.
36
+ const CLIP_THRESHOLD = 10;
37
+
35
38
  type Props = {
36
39
  item: ZappEntry;
37
40
  style: Record<string, any>;
@@ -325,6 +328,7 @@ const PlayerLiveImageComponent = (props: Props) => {
325
328
  <TrackedView
326
329
  testId={`tracked-view-${playerId}-${item.title}`}
327
330
  onPositionUpdated={onPositionUpdated}
331
+ clipThreshold={CLIP_THRESHOLD}
328
332
  >
329
333
  <View ref={trackViewRef}>
330
334
  {isVideoMode && (
@@ -2,6 +2,7 @@
2
2
 
3
3
  exports[`PlayerLiveImageComponent should render correctly with default props 1`] = `
4
4
  <TrackedView
5
+ clipThreshold={10}
5
6
  onPositionUpdated={[Function]}
6
7
  testId="tracked-view-player1-Test"
7
8
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "12.0.7-rc.3",
3
+ "version": "12.0.8-alpha.1554380886",
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.7-rc.3",
38
- "@applicaster/zapp-react-native-bridge": "12.0.7-rc.3",
39
- "@applicaster/zapp-react-native-redux": "12.0.7-rc.3",
40
- "@applicaster/zapp-react-native-utils": "12.0.7-rc.3",
37
+ "@applicaster/applicaster-types": "12.0.8-alpha.1554380886",
38
+ "@applicaster/zapp-react-native-bridge": "12.0.8-alpha.1554380886",
39
+ "@applicaster/zapp-react-native-redux": "12.0.8-alpha.1554380886",
40
+ "@applicaster/zapp-react-native-utils": "12.0.8-alpha.1554380886",
41
41
  "promise": "^8.3.0",
42
42
  "react-router-native": "^5.1.2",
43
43
  "url": "^0.11.0",