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.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import { BlurView } from '@react-native-community/blur';
|
|
|
6
6
|
import Tooltip from 'react-native-walkthrough-tooltip';
|
|
7
7
|
import Pdf from 'react-native-pdf';
|
|
8
8
|
import * as Progress from 'react-native-progress';
|
|
9
|
+
import DeviceInfo from 'react-native-device-info';
|
|
9
10
|
import { Calendar } from 'react-native-calendars';
|
|
10
11
|
import CountryPicker from 'react-native-country-picker-modal';
|
|
11
12
|
import { TextInput as TextInput$1 } from 'react-native-paper';
|
|
@@ -2585,8 +2586,9 @@ const ContactModal = ({
|
|
|
2585
2586
|
data,
|
|
2586
2587
|
emailSubject
|
|
2587
2588
|
}) => {
|
|
2588
|
-
const handleCall = () => {
|
|
2589
|
-
|
|
2589
|
+
const handleCall = async () => {
|
|
2590
|
+
const isSimulator = Platform.OS === "ios" && await DeviceInfo.isEmulator();
|
|
2591
|
+
if (isSimulator) {
|
|
2590
2592
|
Alert.alert("Phone calls are not supported on the iOS simulator.");
|
|
2591
2593
|
} else {
|
|
2592
2594
|
Linking.openURL(`tel:${phoneNumber}`);
|
|
@@ -3478,7 +3480,7 @@ const CustomDropdown = (props) => {
|
|
|
3478
3480
|
data: data ?? [],
|
|
3479
3481
|
labelField,
|
|
3480
3482
|
valueField,
|
|
3481
|
-
placeholder
|
|
3483
|
+
placeholder,
|
|
3482
3484
|
value,
|
|
3483
3485
|
onFocus: () => setIsFocus(true),
|
|
3484
3486
|
onBlur: () => setIsFocus(false),
|