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.js CHANGED
@@ -780,7 +780,10 @@ const createStyles$3 = (theme) => {
780
780
  });
781
781
  };
782
782
 
783
- const CustomLoader = ({ loading, loadingText = "Loading..." }) => {
783
+ const CustomLoader = ({
784
+ loading,
785
+ loadingText = "Loading..."
786
+ }) => {
784
787
  const rotateAnim = React.useRef(new reactNative.Animated.Value(0)).current;
785
788
  const { theme, mode } = useTheme();
786
789
  const styles = createStyles$3(theme);
@@ -795,12 +798,8 @@ const CustomLoader = ({ loading, loadingText = "Loading..." }) => {
795
798
  })
796
799
  ).start();
797
800
  } else {
798
- rotateAnim.stopAnimation();
799
801
  rotateAnim.setValue(0);
800
802
  }
801
- return () => {
802
- rotateAnim.stopAnimation();
803
- };
804
803
  }, [loading, rotateAnim]);
805
804
  if (!loading) return null;
806
805
  const spin = rotateAnim.interpolate({