dhre-ui-kit 0.0.338 → 0.0.339
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 +15 -4
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +14 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import { Dimensions, StyleSheet, Text, Pressable, View, Platform, KeyboardAvoidi
|
|
|
4
4
|
import Modal from 'react-native-modal';
|
|
5
5
|
import Clipboard from '@react-native-clipboard/clipboard';
|
|
6
6
|
import LottieView from 'lottie-react-native';
|
|
7
|
+
import { LOADER_JSON } from 'src/assets/images/loading';
|
|
7
8
|
import Tooltip from 'react-native-walkthrough-tooltip';
|
|
8
9
|
import Pdf from 'react-native-pdf';
|
|
9
10
|
import * as Progress from 'react-native-progress';
|
|
@@ -775,13 +776,23 @@ const createStyles$3 = (theme) => {
|
|
|
775
776
|
});
|
|
776
777
|
};
|
|
777
778
|
|
|
778
|
-
const
|
|
779
|
-
|
|
779
|
+
const CustomLoader = ({
|
|
780
|
+
loading,
|
|
781
|
+
loadingText = "Loading..."
|
|
782
|
+
}) => {
|
|
780
783
|
const { theme, mode } = useTheme();
|
|
781
784
|
const styles = createStyles$3(theme);
|
|
782
785
|
if (!loading) return null;
|
|
783
786
|
else {
|
|
784
|
-
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(View, { style: styles.backdrop }, /* @__PURE__ */ React.createElement(View, { style: styles.box }, /* @__PURE__ */ React.createElement(View, { style: styles.loader }, /* @__PURE__ */ React.createElement(
|
|
787
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(View, { style: styles.backdrop }, /* @__PURE__ */ React.createElement(View, { style: styles.box }, /* @__PURE__ */ React.createElement(View, { style: styles.loader }, /* @__PURE__ */ React.createElement(
|
|
788
|
+
LottieView,
|
|
789
|
+
{
|
|
790
|
+
style: styles.loader,
|
|
791
|
+
source: LOADER_JSON,
|
|
792
|
+
autoPlay: true,
|
|
793
|
+
loop: true
|
|
794
|
+
}
|
|
795
|
+
)), /* @__PURE__ */ React.createElement(
|
|
785
796
|
CustomText$1,
|
|
786
797
|
{
|
|
787
798
|
text: loadingText,
|