dhre-ui-kit 0.0.217 → 0.0.219
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 +10 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +9 -2
- 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';
|
|
@@ -1636,6 +1637,10 @@ var styles$p = StyleSheet.create({
|
|
|
1636
1637
|
alignItems: "center",
|
|
1637
1638
|
justifyContent: "center",
|
|
1638
1639
|
borderWidth: 1
|
|
1640
|
+
},
|
|
1641
|
+
textStyle: {
|
|
1642
|
+
alignSelf: "center",
|
|
1643
|
+
textAlign: "center"
|
|
1639
1644
|
}
|
|
1640
1645
|
});
|
|
1641
1646
|
|
|
@@ -1679,6 +1684,7 @@ const Tabs = ({
|
|
|
1679
1684
|
{
|
|
1680
1685
|
variant: FontStyle.L2_REGULAR,
|
|
1681
1686
|
style: {
|
|
1687
|
+
...styles$p.textStyle,
|
|
1682
1688
|
color: isSelected ? theme.CONTENT_INVERTED : theme.CONTENT_SECONDRY
|
|
1683
1689
|
},
|
|
1684
1690
|
text: title
|
|
@@ -2580,8 +2586,9 @@ const ContactModal = ({
|
|
|
2580
2586
|
data,
|
|
2581
2587
|
emailSubject
|
|
2582
2588
|
}) => {
|
|
2583
|
-
const handleCall = () => {
|
|
2584
|
-
|
|
2589
|
+
const handleCall = async () => {
|
|
2590
|
+
const isSimulator = Platform.OS === "ios" && await DeviceInfo.isEmulator();
|
|
2591
|
+
if (isSimulator) {
|
|
2585
2592
|
Alert.alert("Phone calls are not supported on the iOS simulator.");
|
|
2586
2593
|
} else {
|
|
2587
2594
|
Linking.openURL(`tel:${phoneNumber}`);
|