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 CHANGED
@@ -511,6 +511,7 @@ interface ContactModalProps {
511
511
  onClose: () => void;
512
512
  isMailOpen: boolean;
513
513
  data: string;
514
+ emailSubject: string;
514
515
  }
515
516
  declare const _default$b: (props: ContactModalProps) => React$1.JSX.Element;
516
517
 
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) {