morenoh149 / react-native-contacts

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

React native contact crush my application #589

Closed Drabo416 closed 3 years ago

Drabo416 commented 3 years ago

good evening dear developers, I want to use react native contact to access my contacts but my application crashes on startup. when i remove i getContacts code the application chews. I need your help, I am working on a project and I have a deadline to meet

JonathasLopes commented 3 years ago

good morning! The same problem here...

oxyii commented 3 years ago

Same here. downgrade to < v6 helps for me. In my case works fine on v5.2.8

oxyii commented 3 years ago

I understand my problem. Starting v6 api was changed from callback as arg to Promise-like... it's hard to find such a minor change in a code the size of New York.

@morenoh149 it would be great to check for the presence of method arguments and issue a warning if any. At least in the first versions after api changes. I lost a day looking for this error :(

morenoh149 commented 3 years ago

@oxyii readme says it returns a promise right there https://github.com/morenoh149/react-native-contacts#api

if you want to improve the docs or example submit a PR

morenoh149 commented 3 years ago

closing for ambiguous.