dhre-ui-kit 0.0.194 → 0.0.195
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.d.ts +1 -0
- package/lib/index.js +4 -3
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +4 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -2567,7 +2567,8 @@ const ContactModal = ({
|
|
|
2567
2567
|
visible,
|
|
2568
2568
|
onClose,
|
|
2569
2569
|
isMailOpen,
|
|
2570
|
-
data
|
|
2570
|
+
data,
|
|
2571
|
+
emailSubject
|
|
2571
2572
|
}) => {
|
|
2572
2573
|
const handleCall = () => {
|
|
2573
2574
|
if (Platform.OS === "ios") {
|
|
@@ -2579,11 +2580,11 @@ const ContactModal = ({
|
|
|
2579
2580
|
};
|
|
2580
2581
|
const openEmail = (recipient) => {
|
|
2581
2582
|
const mailtoUrl = `mailto:${recipient}?subject=${encodeURIComponent(
|
|
2582
|
-
|
|
2583
|
+
emailSubject
|
|
2583
2584
|
)}&body=${encodeURIComponent("")}`;
|
|
2584
2585
|
if (Platform.OS === "android") {
|
|
2585
2586
|
const gmailUrl = `intent://#Intent;scheme=mailto;package=com.google.android.gm;S.to=${recipient};S.subject=${encodeURIComponent(
|
|
2586
|
-
|
|
2587
|
+
emailSubject
|
|
2587
2588
|
)};S.body=${encodeURIComponent("")};end`;
|
|
2588
2589
|
Linking.canOpenURL(gmailUrl).then((supported) => {
|
|
2589
2590
|
if (supported) {
|