@aks-dev/easyui 1.0.182 → 1.0.183
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.
- package/dist/components/AnimationModal/AnimationModal.js +15 -19
- package/dist/components/Badge/Badge.js +13 -18
- package/dist/components/DottedLine/DottedLine.js +7 -10
- package/dist/components/Echarts/EchartsView.js +14 -18
- package/dist/components/Echarts/helper.js +2 -7
- package/dist/components/Hud/AlertBottomView/AlertBottomView.js +56 -61
- package/dist/components/Hud/AlertSheetView/AlertSheetView.js +42 -47
- package/dist/components/Hud/AlertView/AlertView.js +55 -60
- package/dist/components/Hud/Hud.js +17 -31
- package/dist/components/Hud/Loading/Loading.js +21 -27
- package/dist/components/Hud/PopoverView/PopoverView.js +16 -22
- package/dist/components/Hud/Scanner/Scanner.js +108 -114
- package/dist/components/Hud/Toast/Toast.js +22 -27
- package/dist/components/MenuView/MenuView.js +31 -34
- package/dist/components/Modal/Modal.js +1 -6
- package/dist/components/MutiPictureView/MutiPictureView.js +35 -38
- package/dist/components/PictureViewer/PictureViewer.js +12 -17
- package/dist/components/RefreshList/RefreshList.js +47 -51
- package/dist/components/RichText/RichText.js +17 -20
- package/dist/components/StickHeaderView/StickHeaderView.js +7 -10
- package/dist/components/TableCell/TableCell.js +29 -32
- package/dist/components/TextInputArea/TextInputArea.js +25 -28
- package/dist/components/WithLoadingContainer/WithLoadingContainer.js +20 -24
- package/dist/index.js +19 -51
- package/dist/jsbridge/RNEasyui.js +11 -18
- package/dist/jsbridge/UpgradeModule.js +8 -14
- package/dist/jsbridge/index.js +2 -5
- package/dist/screen/index.js +2 -5
- package/dist/screen/px2dp.js +14 -18
- package/dist/screen/px2sp.js +5 -9
- package/dist/screen/text-fit.js +7 -10
- package/dist/utils/index.js +2 -5
- package/dist/utils/lazy.js +25 -50
- package/dist/utils/mode.js +8 -13
- package/package.json +2 -2
- package/readme.md +1 -1
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
29
|
+
let scale_anim = React.useRef(new Animated.Value(0.3)).current;
|
|
34
30
|
const startAnimate = (x) => {
|
|
35
|
-
|
|
31
|
+
Animated.timing(scale_anim, {
|
|
36
32
|
toValue: x,
|
|
37
33
|
useNativeDriver: true,
|
|
38
34
|
duration: 150,
|
|
39
|
-
easing:
|
|
35
|
+
easing: Easing.ease,
|
|
40
36
|
}).start();
|
|
41
37
|
};
|
|
42
38
|
React.useEffect(() => {
|
|
43
|
-
if (
|
|
39
|
+
if (Platform.OS == "android") {
|
|
44
40
|
if (state.visible) {
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
StatusBar.setBackgroundColor("black");
|
|
42
|
+
StatusBar.setBarStyle("light-content");
|
|
47
43
|
}
|
|
48
44
|
else {
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
StatusBar.setBackgroundColor("transparent");
|
|
46
|
+
StatusBar.setBarStyle("dark-content");
|
|
51
47
|
}
|
|
52
48
|
}
|
|
53
49
|
}, [state.visible]);
|
|
54
|
-
return (<
|
|
50
|
+
return (<Modal visible={state.visible} transparent animationType="fade" onRequestClose={() => {
|
|
55
51
|
// hide()
|
|
56
52
|
}}>
|
|
57
|
-
<
|
|
58
|
-
<
|
|
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 && <
|
|
59
|
+
{state.title && <Text style={styles.titleText}>{state.title}</Text>}
|
|
64
60
|
{(() => {
|
|
65
61
|
if (typeof state.content == "string")
|
|
66
|
-
return <
|
|
62
|
+
return <Text style={styles.contentText}>{state.content}</Text>;
|
|
67
63
|
if (React.isValidElement(state.content))
|
|
68
64
|
return state.content;
|
|
69
|
-
return <
|
|
65
|
+
return <View />;
|
|
70
66
|
})()}
|
|
71
67
|
|
|
72
|
-
{(state.cancelText || state.confirmText) && (<
|
|
73
|
-
{state.cancelText && (<
|
|
68
|
+
{(state.cancelText || state.confirmText) && (<View style={styles.action}>
|
|
69
|
+
{state.cancelText && (<TouchableOpacity style={[
|
|
74
70
|
styles.cancel,
|
|
75
|
-
{ marginRight: state.confirmText ?
|
|
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
|
-
<
|
|
78
|
+
<Text style={[styles.cancelText, state.cancelTextStyle]}>
|
|
83
79
|
{state.cancelText}
|
|
84
|
-
</
|
|
85
|
-
</
|
|
80
|
+
</Text>
|
|
81
|
+
</TouchableOpacity>)}
|
|
86
82
|
|
|
87
|
-
{state.confirmText && (<
|
|
83
|
+
{state.confirmText && (<TouchableOpacity style={[
|
|
88
84
|
styles.confirm,
|
|
89
|
-
{ marginLeft: state.cancelText ?
|
|
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
|
-
<
|
|
92
|
+
<Text style={[styles.confirmText, state.confirmTextStyle]}>
|
|
97
93
|
{state.confirmText}
|
|
98
|
-
</
|
|
99
|
-
</
|
|
100
|
-
</
|
|
101
|
-
</
|
|
102
|
-
</
|
|
103
|
-
</
|
|
94
|
+
</Text>
|
|
95
|
+
</TouchableOpacity>)}
|
|
96
|
+
</View>)}
|
|
97
|
+
</Animated.View>
|
|
98
|
+
</View>
|
|
99
|
+
</Modal>);
|
|
104
100
|
});
|
|
105
|
-
|
|
106
|
-
const showAlertModal = (props) => {
|
|
107
|
-
|
|
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 =
|
|
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:
|
|
122
|
+
minWidth: deviceWidth - px2dp(60),
|
|
128
123
|
backgroundColor: "white",
|
|
129
124
|
overflow: "hidden",
|
|
130
|
-
borderRadius:
|
|
125
|
+
borderRadius: px2dp(10),
|
|
131
126
|
display: "flex",
|
|
132
|
-
padding:
|
|
127
|
+
padding: px2dp(15),
|
|
133
128
|
},
|
|
134
129
|
titleText: {
|
|
135
|
-
maxWidth:
|
|
136
|
-
fontSize:
|
|
137
|
-
marginBottom:
|
|
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:
|
|
145
|
-
marginBottom:
|
|
146
|
-
minHeight:
|
|
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:
|
|
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:
|
|
159
|
+
height: px2dp(44),
|
|
165
160
|
display: "flex",
|
|
166
161
|
justifyContent: "center",
|
|
167
162
|
alignItems: "center",
|
|
168
|
-
borderRadius:
|
|
169
|
-
borderWidth:
|
|
163
|
+
borderRadius: px2dp(10),
|
|
164
|
+
borderWidth: px2dp(1),
|
|
170
165
|
borderColor: "#A3A9CC",
|
|
171
166
|
},
|
|
172
167
|
confirm: {
|
|
173
168
|
width: "40%",
|
|
174
|
-
height:
|
|
169
|
+
height: px2dp(44),
|
|
175
170
|
display: "flex",
|
|
176
171
|
justifyContent: "center",
|
|
177
172
|
alignItems: "center",
|
|
178
173
|
backgroundColor: "#2763FF",
|
|
179
|
-
borderRadius:
|
|
174
|
+
borderRadius: px2dp(10),
|
|
180
175
|
},
|
|
181
176
|
cancelText: {
|
|
182
|
-
fontSize:
|
|
177
|
+
fontSize: px2sp(15),
|
|
183
178
|
color: "#A3A9CC",
|
|
184
179
|
},
|
|
185
180
|
confirmText: {
|
|
186
|
-
fontSize:
|
|
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
|
-
|
|
8
|
+
import * as React from 'react';
|
|
13
9
|
// import { StyleSheet } from 'react-native'
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
<
|
|
36
|
-
<
|
|
37
|
-
<
|
|
38
|
-
<
|
|
39
|
-
<
|
|
40
|
-
<
|
|
41
|
-
<
|
|
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
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const [show, setShow] =
|
|
16
|
-
const [tipText, setTipText] =
|
|
17
|
-
|
|
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
|
-
|
|
15
|
+
BackHandler.addEventListener("hardwareBackPress", onBackPress);
|
|
20
16
|
// return () => BackHandler.removeEventListener('hardwareBackPress', onBackPress);
|
|
21
17
|
}, [show]);
|
|
22
|
-
|
|
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 (<
|
|
34
|
-
<
|
|
35
|
-
<
|
|
36
|
-
<
|
|
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
|
-
</
|
|
39
|
-
</
|
|
40
|
-
</
|
|
34
|
+
</Text>
|
|
35
|
+
</View>
|
|
36
|
+
</TouchableOpacity>);
|
|
41
37
|
});
|
|
42
|
-
|
|
43
|
-
const showLoading = (content) =>
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
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
|
-
...
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const [visible, setVisible] =
|
|
16
|
-
const [options, setOptions] =
|
|
17
|
-
|
|
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
|
-
|
|
15
|
+
BackHandler.addEventListener("hardwareBackPress", onBackPress);
|
|
20
16
|
// return () => BackHandler.removeEventListener('hardwareBackPress', onBackPress);
|
|
21
17
|
}, [visible]);
|
|
22
|
-
|
|
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 (<
|
|
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
|
-
{
|
|
40
|
-
</
|
|
35
|
+
{React.isValidElement(options?.content) && options?.content}
|
|
36
|
+
</TouchableOpacity>);
|
|
41
37
|
});
|
|
42
|
-
|
|
43
|
-
const showPopoverView = (options) =>
|
|
44
|
-
|
|
45
|
-
const
|
|
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
|
-
...
|
|
43
|
+
...StyleSheet.absoluteFill,
|
|
50
44
|
display: "flex",
|
|
51
45
|
// backgroundColor:'red'
|
|
52
46
|
},
|