dhre-ui-kit 0.0.218 → 0.0.220
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 +6 -3
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +5 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +2 -1
package/lib/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var blur = require('@react-native-community/blur');
|
|
|
10
10
|
var Tooltip = require('react-native-walkthrough-tooltip');
|
|
11
11
|
var Pdf = require('react-native-pdf');
|
|
12
12
|
var Progress = require('react-native-progress');
|
|
13
|
+
var DeviceInfo = require('react-native-device-info');
|
|
13
14
|
var reactNativeCalendars = require('react-native-calendars');
|
|
14
15
|
var CountryPicker = require('react-native-country-picker-modal');
|
|
15
16
|
var reactNativePaper = require('react-native-paper');
|
|
@@ -43,6 +44,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
43
44
|
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
|
44
45
|
var Pdf__default = /*#__PURE__*/_interopDefaultLegacy(Pdf);
|
|
45
46
|
var Progress__namespace = /*#__PURE__*/_interopNamespace(Progress);
|
|
47
|
+
var DeviceInfo__default = /*#__PURE__*/_interopDefaultLegacy(DeviceInfo);
|
|
46
48
|
var CountryPicker__default = /*#__PURE__*/_interopDefaultLegacy(CountryPicker);
|
|
47
49
|
var DocumentPicker__default = /*#__PURE__*/_interopDefaultLegacy(DocumentPicker);
|
|
48
50
|
var RNFS__default = /*#__PURE__*/_interopDefaultLegacy(RNFS);
|
|
@@ -2619,8 +2621,9 @@ const ContactModal = ({
|
|
|
2619
2621
|
data,
|
|
2620
2622
|
emailSubject
|
|
2621
2623
|
}) => {
|
|
2622
|
-
const handleCall = () => {
|
|
2623
|
-
|
|
2624
|
+
const handleCall = async () => {
|
|
2625
|
+
const isSimulator = reactNative.Platform.OS === "ios" && await DeviceInfo__default["default"].isEmulator();
|
|
2626
|
+
if (isSimulator) {
|
|
2624
2627
|
reactNative.Alert.alert("Phone calls are not supported on the iOS simulator.");
|
|
2625
2628
|
} else {
|
|
2626
2629
|
reactNative.Linking.openURL(`tel:${phoneNumber}`);
|
|
@@ -3512,7 +3515,7 @@ const CustomDropdown = (props) => {
|
|
|
3512
3515
|
data: data ?? [],
|
|
3513
3516
|
labelField,
|
|
3514
3517
|
valueField,
|
|
3515
|
-
placeholder
|
|
3518
|
+
placeholder,
|
|
3516
3519
|
value,
|
|
3517
3520
|
onFocus: () => setIsFocus(true),
|
|
3518
3521
|
onBlur: () => setIsFocus(false),
|