dhre-ui-kit 0.0.238 → 0.0.239

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/lib/index.mjs CHANGED
@@ -744,7 +744,10 @@ const createStyles$3 = (theme) => {
744
744
  });
745
745
  };
746
746
 
747
- const CustomLoader = ({ loading, loadingText = "Loading..." }) => {
747
+ const CustomLoader = ({
748
+ loading,
749
+ loadingText = "Loading..."
750
+ }) => {
748
751
  const rotateAnim = useRef(new Animated.Value(0)).current;
749
752
  const { theme, mode } = useTheme();
750
753
  const styles = createStyles$3(theme);
@@ -759,12 +762,8 @@ const CustomLoader = ({ loading, loadingText = "Loading..." }) => {
759
762
  })
760
763
  ).start();
761
764
  } else {
762
- rotateAnim.stopAnimation();
763
765
  rotateAnim.setValue(0);
764
766
  }
765
- return () => {
766
- rotateAnim.stopAnimation();
767
- };
768
767
  }, [loading, rotateAnim]);
769
768
  if (!loading) return null;
770
769
  const spin = rotateAnim.interpolate({