morenoh149 / react-native-contacts

React Native Contacts
MIT License
1.64k stars 560 forks source link

Unsaved Draft with openContactForm open when open default phone app (iOS) #692

Closed kukadiyaAni closed 1 year ago

kukadiyaAni commented 2 years ago

Platform: iOS Step to reproduce the issue

  1. Open the app and execute the below code
const newPerson = {
      phoneNumbers: [
        {
          label: "mobile",
          number: 9876543210,
        },
      ],
    };

Contacts.openContactForm(newPerson).then(contact => {
  // contact has been saved
})
  1. Open a new contact modal simulator_screenshot_BCFF8301-1C9F-43CE-A05E-80C0E72AA7CF

  2. Click on Cancel and select Discard Changes

  3. Now close app and open default iOS Phone app and automatically open Unsave draft with the above number

morenoh149 commented 2 years ago

is it saving the draft or not? One could argue that either behavior is correct.

kukadiyaAni commented 2 years ago

@morenoh149 it's saving on draft and when open default Phone app then open this modal with old detail while I discard changes from my app

kukadiyaAni commented 1 year ago

@morenoh149 did you find solution for that?

morenoh149 commented 1 year ago

@kukadiyaAni no. Feel free to submit a PR.

kukadiyaAni commented 1 year ago

I'm react native developer with base Android developer not much experience in iOS, if any help me here to remove draft so, I can update in iOS

github-actions[bot] commented 1 year ago

This issue is stale, please provide more information about the status

kukadiyaAni commented 1 year ago

this issue still there please any one suggest me solution