@aks-dev/easyui 1.0.182 → 1.0.184

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.

Potentially problematic release.


This version of @aks-dev/easyui might be problematic. Click here for more details.

Files changed (36) hide show
  1. package/dist/components/AnimationModal/AnimationModal.js +15 -19
  2. package/dist/components/Badge/Badge.js +13 -18
  3. package/dist/components/DottedLine/DottedLine.js +7 -10
  4. package/dist/components/Echarts/EchartsView.js +14 -18
  5. package/dist/components/Echarts/helper.js +2 -7
  6. package/dist/components/Hud/AlertBottomView/AlertBottomView.js +56 -61
  7. package/dist/components/Hud/AlertSheetView/AlertSheetView.js +42 -47
  8. package/dist/components/Hud/AlertView/AlertView.js +55 -60
  9. package/dist/components/Hud/Hud.js +17 -31
  10. package/dist/components/Hud/Loading/Loading.js +21 -27
  11. package/dist/components/Hud/PopoverView/PopoverView.js +16 -22
  12. package/dist/components/Hud/Scanner/Scanner.js +108 -114
  13. package/dist/components/Hud/Toast/Toast.js +22 -27
  14. package/dist/components/MenuView/MenuView.js +31 -34
  15. package/dist/components/Modal/Modal.js +1 -6
  16. package/dist/components/MutiPictureView/MutiPictureView.js +35 -38
  17. package/dist/components/PictureViewer/PictureViewer.js +12 -17
  18. package/dist/components/RefreshList/RefreshList.js +47 -51
  19. package/dist/components/RichText/RichText.js +17 -20
  20. package/dist/components/StickHeaderView/StickHeaderView.js +7 -10
  21. package/dist/components/TableCell/TableCell.js +29 -32
  22. package/dist/components/TextInputArea/TextInputArea.js +25 -28
  23. package/dist/components/WithLoadingContainer/WithLoadingContainer.js +20 -24
  24. package/dist/index.js +19 -51
  25. package/dist/jsbridge/RNEasyui.js +11 -18
  26. package/dist/jsbridge/UpgradeModule.js +8 -14
  27. package/dist/jsbridge/index.js +2 -5
  28. package/dist/screen/index.js +2 -5
  29. package/dist/screen/px2dp.js +14 -18
  30. package/dist/screen/px2sp.js +5 -9
  31. package/dist/screen/text-fit.js +7 -10
  32. package/dist/utils/index.js +2 -5
  33. package/dist/utils/lazy.js +25 -50
  34. package/dist/utils/mode.js +8 -13
  35. package/package.json +3 -3
  36. package/readme.md +1 -1
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.showAlertModal = exports.alertViewRef = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const react_native_1 = require("react-native");
7
- const px2dp_1 = require("../../../screen/px2dp");
8
- const px2sp_1 = require("../../../screen/px2sp");
9
- exports.default = React.forwardRef((_, ref) => {
1
+ import * as React from "react";
2
+ import { View, Text, StyleSheet, Platform, Modal, StatusBar, TouchableOpacity, Animated, Easing, } from "react-native";
3
+ import { px2dp, deviceWidth } from "../../../screen/px2dp";
4
+ import { px2sp } from "../../../screen/px2sp";
5
+ export default React.forwardRef((_, ref) => {
10
6
  const defaultState = {
11
7
  visible: false,
12
8
  cancelText: "取消",
@@ -30,89 +26,88 @@ exports.default = React.forwardRef((_, ref) => {
30
26
  // await sleep(50)
31
27
  setState(defaultState);
32
28
  };
33
- let scale_anim = React.useRef(new react_native_1.Animated.Value(0.3)).current;
29
+ let scale_anim = React.useRef(new Animated.Value(0.3)).current;
34
30
  const startAnimate = (x) => {
35
- react_native_1.Animated.timing(scale_anim, {
31
+ Animated.timing(scale_anim, {
36
32
  toValue: x,
37
33
  useNativeDriver: true,
38
34
  duration: 150,
39
- easing: react_native_1.Easing.ease,
35
+ easing: Easing.ease,
40
36
  }).start();
41
37
  };
42
38
  React.useEffect(() => {
43
- if (react_native_1.Platform.OS == "android") {
39
+ if (Platform.OS == "android") {
44
40
  if (state.visible) {
45
- react_native_1.StatusBar.setBackgroundColor("black");
46
- react_native_1.StatusBar.setBarStyle("light-content");
41
+ StatusBar.setBackgroundColor("black");
42
+ StatusBar.setBarStyle("light-content");
47
43
  }
48
44
  else {
49
- react_native_1.StatusBar.setBackgroundColor("transparent");
50
- react_native_1.StatusBar.setBarStyle("dark-content");
45
+ StatusBar.setBackgroundColor("transparent");
46
+ StatusBar.setBarStyle("dark-content");
51
47
  }
52
48
  }
53
49
  }, [state.visible]);
54
- return (<react_native_1.Modal visible={state.visible} transparent animationType="fade" onRequestClose={() => {
50
+ return (<Modal visible={state.visible} transparent animationType="fade" onRequestClose={() => {
55
51
  // hide()
56
52
  }}>
57
- <react_native_1.View style={styles.container}>
58
- <react_native_1.Animated.View style={[
53
+ <View style={styles.container}>
54
+ <Animated.View style={[
59
55
  styles.wrapper,
60
56
  state.wrapperStyle,
61
57
  { transform: [{ scale: scale_anim }] },
62
58
  ]}>
63
- {state.title && <react_native_1.Text style={styles.titleText}>{state.title}</react_native_1.Text>}
59
+ {state.title && <Text style={styles.titleText}>{state.title}</Text>}
64
60
  {(() => {
65
61
  if (typeof state.content == "string")
66
- return <react_native_1.Text style={styles.contentText}>{state.content}</react_native_1.Text>;
62
+ return <Text style={styles.contentText}>{state.content}</Text>;
67
63
  if (React.isValidElement(state.content))
68
64
  return state.content;
69
- return <react_native_1.View />;
65
+ return <View />;
70
66
  })()}
71
67
 
72
- {(state.cancelText || state.confirmText) && (<react_native_1.View style={styles.action}>
73
- {state.cancelText && (<react_native_1.TouchableOpacity style={[
68
+ {(state.cancelText || state.confirmText) && (<View style={styles.action}>
69
+ {state.cancelText && (<TouchableOpacity style={[
74
70
  styles.cancel,
75
- { marginRight: state.confirmText ? (0, px2dp_1.px2dp)(15) : 0 },
71
+ { marginRight: state.confirmText ? px2dp(15) : 0 },
76
72
  state.cancelContainerStyle,
77
73
  ]} activeOpacity={0.8} disabled={state.cancelDisabled} onPress={() => {
78
74
  hide();
79
75
  cancelCallbackRef.current && cancelCallbackRef.current();
80
76
  cancelCallbackRef.current = undefined;
81
77
  }}>
82
- <react_native_1.Text style={[styles.cancelText, state.cancelTextStyle]}>
78
+ <Text style={[styles.cancelText, state.cancelTextStyle]}>
83
79
  {state.cancelText}
84
- </react_native_1.Text>
85
- </react_native_1.TouchableOpacity>)}
80
+ </Text>
81
+ </TouchableOpacity>)}
86
82
 
87
- {state.confirmText && (<react_native_1.TouchableOpacity style={[
83
+ {state.confirmText && (<TouchableOpacity style={[
88
84
  styles.confirm,
89
- { marginLeft: state.cancelText ? (0, px2dp_1.px2dp)(15) : 0 },
85
+ { marginLeft: state.cancelText ? px2dp(15) : 0 },
90
86
  state.confirmContainerStyle,
91
87
  ]} activeOpacity={0.8} onPress={() => {
92
88
  hide();
93
89
  confirmCallbackRef.current && confirmCallbackRef.current();
94
90
  confirmCallbackRef.current = undefined;
95
91
  }}>
96
- <react_native_1.Text style={[styles.confirmText, state.confirmTextStyle]}>
92
+ <Text style={[styles.confirmText, state.confirmTextStyle]}>
97
93
  {state.confirmText}
98
- </react_native_1.Text>
99
- </react_native_1.TouchableOpacity>)}
100
- </react_native_1.View>)}
101
- </react_native_1.Animated.View>
102
- </react_native_1.View>
103
- </react_native_1.Modal>);
94
+ </Text>
95
+ </TouchableOpacity>)}
96
+ </View>)}
97
+ </Animated.View>
98
+ </View>
99
+ </Modal>);
104
100
  });
105
- exports.alertViewRef = React.createRef();
106
- const showAlertModal = (props) => {
107
- exports.alertViewRef.current?.show(props);
101
+ export const alertViewRef = React.createRef();
102
+ export const showAlertModal = (props) => {
103
+ alertViewRef.current?.show(props);
108
104
  };
109
- exports.showAlertModal = showAlertModal;
110
105
  // const sleep = (msec?: number) => {
111
106
  // return new Promise(resolve => {
112
107
  // setTimeout(resolve, msec || 350);
113
108
  // });
114
109
  // }
115
- const styles = react_native_1.StyleSheet.create({
110
+ const styles = StyleSheet.create({
116
111
  container: {
117
112
  display: "flex",
118
113
  flexGrow: 1,
@@ -124,30 +119,30 @@ const styles = react_native_1.StyleSheet.create({
124
119
  flexGrow: 0,
125
120
  flexShrink: 0,
126
121
  // minWidth: '70%',
127
- minWidth: px2dp_1.deviceWidth - (0, px2dp_1.px2dp)(60),
122
+ minWidth: deviceWidth - px2dp(60),
128
123
  backgroundColor: "white",
129
124
  overflow: "hidden",
130
- borderRadius: (0, px2dp_1.px2dp)(10),
125
+ borderRadius: px2dp(10),
131
126
  display: "flex",
132
- padding: (0, px2dp_1.px2dp)(15),
127
+ padding: px2dp(15),
133
128
  },
134
129
  titleText: {
135
- maxWidth: px2dp_1.deviceWidth - (0, px2dp_1.px2dp)(90),
136
- fontSize: (0, px2sp_1.px2sp)(18),
137
- marginBottom: (0, px2dp_1.px2dp)(20),
130
+ maxWidth: deviceWidth - px2dp(90),
131
+ fontSize: px2sp(18),
132
+ marginBottom: px2dp(20),
138
133
  // backgroundColor: 'red',
139
134
  textAlign: "center",
140
135
  fontWeight: "bold",
141
136
  color: "#1A1A1A",
142
137
  },
143
138
  contentText: {
144
- maxWidth: px2dp_1.deviceWidth - (0, px2dp_1.px2dp)(90),
145
- marginBottom: (0, px2dp_1.px2dp)(20),
146
- minHeight: (0, px2dp_1.px2dp)(40),
139
+ maxWidth: deviceWidth - px2dp(90),
140
+ marginBottom: px2dp(20),
141
+ minHeight: px2dp(40),
147
142
  flexGrow: 0,
148
143
  flexShrink: 1,
149
144
  width: undefined,
150
- fontSize: (0, px2sp_1.px2sp)(15),
145
+ fontSize: px2sp(15),
151
146
  // backgroundColor: 'red',
152
147
  color: "#1A1A1A",
153
148
  textAlign: "center",
@@ -161,29 +156,29 @@ const styles = react_native_1.StyleSheet.create({
161
156
  },
162
157
  cancel: {
163
158
  width: "40%",
164
- height: (0, px2dp_1.px2dp)(44),
159
+ height: px2dp(44),
165
160
  display: "flex",
166
161
  justifyContent: "center",
167
162
  alignItems: "center",
168
- borderRadius: (0, px2dp_1.px2dp)(10),
169
- borderWidth: (0, px2dp_1.px2dp)(1),
163
+ borderRadius: px2dp(10),
164
+ borderWidth: px2dp(1),
170
165
  borderColor: "#A3A9CC",
171
166
  },
172
167
  confirm: {
173
168
  width: "40%",
174
- height: (0, px2dp_1.px2dp)(44),
169
+ height: px2dp(44),
175
170
  display: "flex",
176
171
  justifyContent: "center",
177
172
  alignItems: "center",
178
173
  backgroundColor: "#2763FF",
179
- borderRadius: (0, px2dp_1.px2dp)(10),
174
+ borderRadius: px2dp(10),
180
175
  },
181
176
  cancelText: {
182
- fontSize: (0, px2sp_1.px2sp)(15),
177
+ fontSize: px2sp(15),
183
178
  color: "#A3A9CC",
184
179
  },
185
180
  confirmText: {
186
- fontSize: (0, px2sp_1.px2sp)(15),
181
+ fontSize: px2sp(15),
187
182
  color: "white",
188
183
  },
189
184
  });
@@ -1,7 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hideScanner = exports.showScanner = exports.hidePopoverView = exports.showPopoverView = exports.showAlertSheetModal = exports.showAlertBottomModal = exports.hideLoading = exports.showLoading = exports.showToast = exports.showAlertModal = exports.Hud = void 0;
4
- const tslib_1 = require("tslib");
5
1
  /*
6
2
  * @Author: shiguo
7
3
  * @Date: 2022-04-24 14:10:04
@@ -9,35 +5,25 @@ const tslib_1 = require("tslib");
9
5
  * @LastEditTime: 2023-03-23 11:13:55
10
6
  * @FilePath: /aks-fire-app/node_modules/@aks-dev/easyui/lib/Hud/Hud.tsx
11
7
  */
12
- const React = tslib_1.__importStar(require("react"));
8
+ import * as React from 'react';
13
9
  // import { StyleSheet } from 'react-native'
14
- const AlertView_1 = tslib_1.__importStar(require("./AlertView/AlertView"));
15
- Object.defineProperty(exports, "showAlertModal", { enumerable: true, get: function () { return AlertView_1.showAlertModal; } });
16
- const AlertBottomView_1 = tslib_1.__importStar(require("./AlertBottomView/AlertBottomView"));
17
- Object.defineProperty(exports, "showAlertBottomModal", { enumerable: true, get: function () { return AlertBottomView_1.showAlertBottomModal; } });
18
- const AlertSheetView_1 = tslib_1.__importStar(require("./AlertSheetView/AlertSheetView"));
19
- Object.defineProperty(exports, "showAlertSheetModal", { enumerable: true, get: function () { return AlertSheetView_1.showAlertSheetModal; } });
20
- const Loading_1 = require("./Loading/Loading");
21
- Object.defineProperty(exports, "hideLoading", { enumerable: true, get: function () { return Loading_1.hideLoading; } });
22
- Object.defineProperty(exports, "showLoading", { enumerable: true, get: function () { return Loading_1.showLoading; } });
23
- const Toast_1 = require("./Toast/Toast");
24
- Object.defineProperty(exports, "showToast", { enumerable: true, get: function () { return Toast_1.showToast; } });
25
- const PopoverView_1 = require("./PopoverView/PopoverView");
26
- Object.defineProperty(exports, "showPopoverView", { enumerable: true, get: function () { return PopoverView_1.showPopoverView; } });
27
- Object.defineProperty(exports, "hidePopoverView", { enumerable: true, get: function () { return PopoverView_1.hidePopoverView; } });
28
- const Scanner_1 = require("./Scanner/Scanner");
29
- Object.defineProperty(exports, "showScanner", { enumerable: true, get: function () { return Scanner_1.showScanner; } });
30
- Object.defineProperty(exports, "hideScanner", { enumerable: true, get: function () { return Scanner_1.hideScanner; } });
31
- const Hud = () => React.cloneElement(<></>, {
10
+ import { alertViewRef, default as AlertView, showAlertModal } from './AlertView/AlertView';
11
+ import { alertBottomViewRef, default as AlertBottomView, showAlertBottomModal } from './AlertBottomView/AlertBottomView';
12
+ import { alertSheetViewRef, default as AlertSheetView, showAlertSheetModal } from './AlertSheetView/AlertSheetView';
13
+ import { hideLoading, Loading, loadingRef, showLoading } from './Loading/Loading';
14
+ import { showToast, Toast, toastRef } from './Toast/Toast';
15
+ import { showPopoverView, hidePopoverView, popoverViewRef, PopoverView } from './PopoverView/PopoverView';
16
+ import { showScanner, hideScanner, scannerRef, Scanner } from './Scanner/Scanner';
17
+ export const Hud = () => React.cloneElement(<></>, {
32
18
  // ...StyleSheet.absoluteFillObject,
33
19
  // display: 'flex',
34
20
  }, [
35
- <Loading_1.Loading key="hud-0" ref={Loading_1.loadingRef}/>,
36
- <Toast_1.Toast key="hud-1" ref={Toast_1.toastRef}/>,
37
- <AlertView_1.default key="hud-2" ref={AlertView_1.alertViewRef}/>,
38
- <AlertBottomView_1.default key="hud-3-0" ref={AlertBottomView_1.alertBottomViewRef}/>,
39
- <AlertSheetView_1.default key="hud-3-1" ref={AlertSheetView_1.alertSheetViewRef}/>,
40
- <PopoverView_1.PopoverView key="hud-4" ref={PopoverView_1.popoverViewRef}/>,
41
- <Scanner_1.Scanner key="hud-5" ref={Scanner_1.scannerRef}/>,
21
+ <Loading key="hud-0" ref={loadingRef}/>,
22
+ <Toast key="hud-1" ref={toastRef}/>,
23
+ <AlertView key="hud-2" ref={alertViewRef}/>,
24
+ <AlertBottomView key="hud-3-0" ref={alertBottomViewRef}/>,
25
+ <AlertSheetView key="hud-3-1" ref={alertSheetViewRef}/>,
26
+ <PopoverView key="hud-4" ref={popoverViewRef}/>,
27
+ <Scanner key="hud-5" ref={scannerRef}/>,
42
28
  ]);
43
- exports.Hud = Hud;
29
+ export { showAlertModal, showToast, showLoading, hideLoading, showAlertBottomModal, showAlertSheetModal, showPopoverView, hidePopoverView, showScanner, hideScanner, };
@@ -1,7 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hideLoading = exports.showLoading = exports.loadingRef = exports.Loading = void 0;
4
- const tslib_1 = require("tslib");
5
1
  /*
6
2
  * @Author: shiguo
7
3
  * @Date: 2022-04-24 14:27:02
@@ -9,17 +5,17 @@ const tslib_1 = require("tslib");
9
5
  * @LastEditTime: 2022-09-09 10:55:48
10
6
  * @FilePath: /@aks-dev/easyui/lib/Hud/Loading/Loading.tsx
11
7
  */
12
- const react_1 = tslib_1.__importStar(require("react"));
13
- const react_native_1 = require("react-native");
14
- exports.Loading = react_1.default.forwardRef((_, ref) => {
15
- const [show, setShow] = (0, react_1.useState)(false);
16
- const [tipText, setTipText] = (0, react_1.useState)("加载中");
17
- react_1.default.useEffect(() => {
8
+ import React, { useImperativeHandle, useState } from "react";
9
+ import { View, ActivityIndicator, StyleSheet, Text, Dimensions, TouchableOpacity, BackHandler, } from "react-native";
10
+ export const Loading = React.forwardRef((_, ref) => {
11
+ const [show, setShow] = useState(false);
12
+ const [tipText, setTipText] = useState("加载中");
13
+ React.useEffect(() => {
18
14
  const onBackPress = () => show;
19
- react_native_1.BackHandler.addEventListener("hardwareBackPress", onBackPress);
15
+ BackHandler.addEventListener("hardwareBackPress", onBackPress);
20
16
  // return () => BackHandler.removeEventListener('hardwareBackPress', onBackPress);
21
17
  }, [show]);
22
- (0, react_1.useImperativeHandle)(ref, () => ({
18
+ useImperativeHandle(ref, () => ({
23
19
  showLoading: (content) => {
24
20
  setShow(true);
25
21
  setTipText(content || "加载中");
@@ -30,24 +26,22 @@ exports.Loading = react_1.default.forwardRef((_, ref) => {
30
26
  }), [show]);
31
27
  if (!show)
32
28
  return null;
33
- return (<react_native_1.TouchableOpacity disabled style={styles.container}>
34
- <react_native_1.View style={styles.warpper}>
35
- <react_native_1.ActivityIndicator color="white" size="large"/>
36
- <react_native_1.Text numberOfLines={5} style={styles.title}>
29
+ return (<TouchableOpacity disabled style={styles.container}>
30
+ <View style={styles.warpper}>
31
+ <ActivityIndicator color="white" size="large"/>
32
+ <Text numberOfLines={5} style={styles.title}>
37
33
  {tipText}
38
- </react_native_1.Text>
39
- </react_native_1.View>
40
- </react_native_1.TouchableOpacity>);
34
+ </Text>
35
+ </View>
36
+ </TouchableOpacity>);
41
37
  });
42
- exports.loadingRef = react_1.default.createRef();
43
- const showLoading = (content) => exports.loadingRef.current?.showLoading(content);
44
- exports.showLoading = showLoading;
45
- const hideLoading = () => exports.loadingRef.current?.hideLoading();
46
- exports.hideLoading = hideLoading;
47
- const SCREEN_WIDTH = react_native_1.Dimensions.get("window").width;
48
- const styles = react_native_1.StyleSheet.create({
38
+ export const loadingRef = React.createRef();
39
+ export const showLoading = (content) => loadingRef.current?.showLoading(content);
40
+ export const hideLoading = () => loadingRef.current?.hideLoading();
41
+ const SCREEN_WIDTH = Dimensions.get("window").width;
42
+ const styles = StyleSheet.create({
49
43
  container: {
50
- ...react_native_1.StyleSheet.absoluteFill,
44
+ ...StyleSheet.absoluteFill,
51
45
  display: "flex",
52
46
  justifyContent: "center",
53
47
  alignItems: "center",
@@ -1,7 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hidePopoverView = exports.showPopoverView = exports.popoverViewRef = exports.PopoverView = void 0;
4
- const tslib_1 = require("tslib");
5
1
  /*
6
2
  * @Author: shiguo
7
3
  * @Date: 2022-04-24 14:27:02
@@ -9,17 +5,17 @@ const tslib_1 = require("tslib");
9
5
  * @LastEditTime: 2022-12-21 15:36:06
10
6
  * @FilePath: /@aks-dev/easyui/lib/Hud/PopoverView/PopoverView.tsx
11
7
  */
12
- const react_1 = tslib_1.__importStar(require("react"));
13
- const react_native_1 = require("react-native");
14
- exports.PopoverView = react_1.default.forwardRef((_, ref) => {
15
- const [visible, setVisible] = (0, react_1.useState)(false);
16
- const [options, setOptions] = (0, react_1.useState)();
17
- react_1.default.useEffect(() => {
8
+ import React, { useImperativeHandle, useState } from "react";
9
+ import { StyleSheet, TouchableOpacity, BackHandler, } from "react-native";
10
+ export const PopoverView = React.forwardRef((_, ref) => {
11
+ const [visible, setVisible] = useState(false);
12
+ const [options, setOptions] = useState();
13
+ React.useEffect(() => {
18
14
  const onBackPress = () => visible;
19
- react_native_1.BackHandler.addEventListener("hardwareBackPress", onBackPress);
15
+ BackHandler.addEventListener("hardwareBackPress", onBackPress);
20
16
  // return () => BackHandler.removeEventListener('hardwareBackPress', onBackPress);
21
17
  }, [visible]);
22
- (0, react_1.useImperativeHandle)(ref, () => ({
18
+ useImperativeHandle(ref, () => ({
23
19
  showPopoverView: (options) => {
24
20
  setVisible(true);
25
21
  setOptions(options);
@@ -31,22 +27,20 @@ exports.PopoverView = react_1.default.forwardRef((_, ref) => {
31
27
  }), [visible]);
32
28
  if (!visible)
33
29
  return null;
34
- return (<react_native_1.TouchableOpacity activeOpacity={1} style={[styles.container, options?.style]} disabled={options?.disabled} onPress={(e) => {
30
+ return (<TouchableOpacity activeOpacity={1} style={[styles.container, options?.style]} disabled={options?.disabled} onPress={(e) => {
35
31
  setVisible(false);
36
32
  setOptions(undefined);
37
33
  // e.stopPropagation()
38
34
  }}>
39
- {react_1.default.isValidElement(options?.content) && options?.content}
40
- </react_native_1.TouchableOpacity>);
35
+ {React.isValidElement(options?.content) && options?.content}
36
+ </TouchableOpacity>);
41
37
  });
42
- exports.popoverViewRef = react_1.default.createRef();
43
- const showPopoverView = (options) => exports.popoverViewRef.current?.showPopoverView(options);
44
- exports.showPopoverView = showPopoverView;
45
- const hidePopoverView = () => exports.popoverViewRef.current?.hidePopoverView();
46
- exports.hidePopoverView = hidePopoverView;
47
- const styles = react_native_1.StyleSheet.create({
38
+ export const popoverViewRef = React.createRef();
39
+ export const showPopoverView = (options) => popoverViewRef.current?.showPopoverView(options);
40
+ export const hidePopoverView = () => popoverViewRef.current?.hidePopoverView();
41
+ const styles = StyleSheet.create({
48
42
  container: {
49
- ...react_native_1.StyleSheet.absoluteFill,
43
+ ...StyleSheet.absoluteFill,
50
44
  display: "flex",
51
45
  // backgroundColor:'red'
52
46
  },