@ornikar/kitt-universal 29.2.0 → 29.3.0

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/dist/index.es.js CHANGED
@@ -12431,7 +12431,6 @@ function SegmentedProgressBar(_ref) {
12431
12431
  });
12432
12432
  }
12433
12433
 
12434
- var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
12435
12434
  function SkeletonContent(_ref) {
12436
12435
  var isLoading = _ref.isLoading,
12437
12436
  width = _ref.width;
@@ -12451,24 +12450,27 @@ function SkeletonContent(_ref) {
12451
12450
  translateX: interpolate(sharedX.value, [0, 1], [-width, width])
12452
12451
  }]
12453
12452
  };
12454
- });
12453
+ }, [sharedX, width]);
12455
12454
  return /*#__PURE__*/jsx(View, {
12456
12455
  height: "100%",
12457
12456
  width: "100%",
12458
12457
  backgroundColor: "kitt.skeleton.backgroundColor",
12459
12458
  borderColor: "kitt.skeleton.flareColor",
12460
- children: /*#__PURE__*/jsx(AnimatedLinearGradient, {
12461
- colors: [theme.kitt.skeleton.backgroundColor, theme.kitt.skeleton.flareColor, theme.kitt.skeleton.backgroundColor],
12462
- locations: [0.1, 0.5, 0.9],
12463
- start: {
12464
- x: 0,
12465
- y: 0
12466
- },
12467
- end: {
12468
- x: 1,
12469
- y: 0
12470
- },
12471
- style: [StyleSheet.absoluteFill, linearGradientStyle]
12459
+ children: /*#__PURE__*/jsx(Animated.View, {
12460
+ style: [StyleSheet.absoluteFill, linearGradientStyle],
12461
+ children: /*#__PURE__*/jsx(LinearGradient, {
12462
+ colors: [theme.kitt.skeleton.backgroundColor, theme.kitt.skeleton.flareColor, theme.kitt.skeleton.backgroundColor],
12463
+ locations: [0.1, 0.5, 0.9],
12464
+ start: {
12465
+ x: 0,
12466
+ y: 0
12467
+ },
12468
+ end: {
12469
+ x: 1,
12470
+ y: 0
12471
+ },
12472
+ style: StyleSheet.absoluteFill
12473
+ })
12472
12474
  })
12473
12475
  });
12474
12476
  }