morenoh149 / react-native-contacts

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

Closing the contact form should not dismiss the entire modal stack #652

Closed mfbx9da4 closed 2 years ago

mfbx9da4 commented 2 years ago

https://github.com/morenoh149/react-native-contacts/blob/6f83c6e4ce44248b16367ed1d8b1e0e1469b8450/ios/RCTContacts/RCTContacts.m#L935

We have a nested set of modals and the the viewContactForm is the leaf modal. When the user taps done it dismisses all modals. The desired behaviour is to dismiss only the contact form. I believe the line quoted is the issue. It is dismissing the rootViewController when it should in fact dismiss the contactViewController in question.

Thanks!