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.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -2600,7 +2600,8 @@ const ContactModal = ({
|
|
|
2600
2600
|
visible,
|
|
2601
2601
|
onClose,
|
|
2602
2602
|
isMailOpen,
|
|
2603
|
-
data
|
|
2603
|
+
data,
|
|
2604
|
+
emailSubject
|
|
2604
2605
|
}) => {
|
|
2605
2606
|
const handleCall = () => {
|
|
2606
2607
|
if (reactNative.Platform.OS === "ios") {
|
|
@@ -2612,11 +2613,11 @@ const ContactModal = ({
|
|
|
2612
2613
|
};
|
|
2613
2614
|
const openEmail = (recipient) => {
|
|
2614
2615
|
const mailtoUrl = `mailto:${recipient}?subject=${encodeURIComponent(
|
|
2615
|
-
|
|
2616
|
+
emailSubject
|
|
2616
2617
|
)}&body=${encodeURIComponent("")}`;
|
|
2617
2618
|
if (reactNative.Platform.OS === "android") {
|
|
2618
2619
|
const gmailUrl = `intent://#Intent;scheme=mailto;package=com.google.android.gm;S.to=${recipient};S.subject=${encodeURIComponent(
|
|
2619
|
-
|
|
2620
|
+
emailSubject
|
|
2620
2621
|
)};S.body=${encodeURIComponent("")};end`;
|
|
2621
2622
|
reactNative.Linking.canOpenURL(gmailUrl).then((supported) => {
|
|
2622
2623
|
if (supported) {
|