react-native-contacts icon indicating copy to clipboard operation
react-native-contacts copied to clipboard

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

Open kukadiyaAni opened this issue 2 years ago • 2 comments

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

kukadiyaAni avatar Sep 16 '22 09:09 kukadiyaAni

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

morenoh149 avatar Sep 22 '22 18:09 morenoh149

@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 avatar Sep 23 '22 03:09 kukadiyaAni

@morenoh149 did you find solution for that?

kukadiyaAni avatar Oct 21 '22 10:10 kukadiyaAni

@kukadiyaAni no. Feel free to submit a PR.

morenoh149 avatar Oct 24 '22 20:10 morenoh149

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

kukadiyaAni avatar Oct 31 '22 07:10 kukadiyaAni

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

github-actions[bot] avatar Dec 31 '22 00:12 github-actions[bot]

this issue still there please any one suggest me solution

kukadiyaAni avatar Jul 27 '23 09:07 kukadiyaAni