morenoh149 / react-native-contacts

React Native Contacts
MIT License
1.65k stars 564 forks source link

iOS - Exception: 'The RCTPromiseResolveBlock must be the second to last parameter #566

Closed bevanmw closed 4 years ago

bevanmw commented 4 years ago

Version Details: RN: 0.61.5 react-native-contacts: 6.0.1 iOS: 14.0.1

Description: Calling openContactForm on iOS results in exception: 'The RCTPromiseResolveBlock must be the second to last parameter in - [RCTContacts openContactForm:resolver:]'

Expectation:

No exception is thown.

Actual behavior:

Calling openContactForm on iOS results in exception: 'The RCTPromiseResolveBlock must be the second to last parameter in - [RCTContacts openContactForm:resolver:]'

liukaren commented 4 years ago

(Also getting a similar error with checkPermission)

Exception 'The RCTPromiseResolveBlock must be the second to last parameter in -[RCTContacts checkPermission:]' was thrown while invoking checkPermission on target Contacts